aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/cge2/events.cpp6
-rw-r--r--engines/cge2/events.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/engines/cge2/events.cpp b/engines/cge2/events.cpp
index 7dd254d183..3941492ca3 100644
--- a/engines/cge2/events.cpp
+++ b/engines/cge2/events.cpp
@@ -40,7 +40,6 @@ namespace CGE2 {
/*----------------- KEYBOARD interface -----------------*/
Keyboard::Keyboard(CGE2Engine *vm) : _client(nullptr), _vm(vm) {
- _keyAlt = false;
}
Keyboard::~Keyboard() {
@@ -54,11 +53,6 @@ Sprite *Keyboard::setClient(Sprite *spr) {
bool Keyboard::getKey(Common::Event &event) {
Common::KeyCode keycode = event.kbd.keycode;
- if (((keycode == Common::KEYCODE_LALT) || (keycode == Common::KEYCODE_RALT)) && (event.type == Common::EVENT_KEYDOWN))
- _keyAlt = true;
- else
- _keyAlt = false;
-
switch (keycode) {
case Common::KEYCODE_F1:
if (event.type == Common::EVENT_KEYUP)
diff --git a/engines/cge2/events.h b/engines/cge2/events.h
index 2522c34049..d1aaca2ded 100644
--- a/engines/cge2/events.h
+++ b/engines/cge2/events.h
@@ -55,7 +55,6 @@ private:
CGE2Engine *_vm;
public:
Sprite *_client;
- bool _keyAlt;
void newKeyboard(Common::Event &event);
Sprite *setClient(Sprite *spr);