1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

renamed keyDown -> keyPressed

This commit is contained in:
Ivan Savenko
2023-02-02 18:42:44 +02:00
parent b1821d4442
commit cfcaf5cbb6
23 changed files with 25 additions and 25 deletions

View File

@@ -119,7 +119,7 @@ public:
//keyboard handling
bool captureAllKeys; //if true, only this object should get info about pressed keys
virtual void keyDown(const SDL_Keycode & key){}
virtual void keyPressed(const SDL_Keycode & key){}
virtual void keyReleased(const SDL_Keycode & key){}
virtual bool captureThisKey(const SDL_Keycode & key); //allows refining captureAllKeys against specific events (eg. don't capture ENTER)
@@ -203,7 +203,7 @@ public:
CKeyShortcut();
CKeyShortcut(int key);
CKeyShortcut(std::set<int> Keys);
void keyDown(const SDL_Keycode & key) override;
void keyPressed(const SDL_Keycode & key) override;
void keyReleased(const SDL_Keycode & key) override;
};