mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-26 06:18:23 +00:00
FULLPIPE: Implement ModalSaveGame::handleMessage()
This commit is contained in:
parent
8fde4cf50f
commit
1e4f171e8a
@ -1629,6 +1629,18 @@ bool ModalSaveGame::getFileInfo(char *filename, FileInfo *fileinfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ModalSaveGame::handleMessage(ExCommand *cmd) {
|
||||
if (_queryDlg)
|
||||
return _queryDlg->handleMessage(cmd);
|
||||
|
||||
if (cmd->_messageNum == 29)
|
||||
processMouse(cmd->_x, cmd->_y);
|
||||
else if (cmd->_messageNum == 36)
|
||||
processKey(cmd->_keyCode);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void ModalSaveGame::processMouse(int x, int y) {
|
||||
for (uint i = 0; i < _files.size(); i++) {
|
||||
if (x >= _files[i]->fx1 && x <= _files[i]->fx2 && y >= _files[i]->fy1 && y <= _files[i]->fy2) {
|
||||
|
@ -256,7 +256,7 @@ public:
|
||||
virtual ~ModalSaveGame();
|
||||
|
||||
virtual bool pollEvent() { return true; }
|
||||
virtual bool handleMessage(ExCommand *message) { return false; }
|
||||
virtual bool handleMessage(ExCommand *message);
|
||||
virtual bool init(int counterdiff);
|
||||
virtual void update() {}
|
||||
virtual void saveload() {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user