From c30b6ce0472c5eb35356afec9e609fdaff4cf8da Mon Sep 17 00:00:00 2001 From: bernd Date: Tue, 19 Jul 2011 10:20:30 +0200 Subject: [PATCH] Added alternate enter key --- simulat0r/gui/qsimulat0r.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simulat0r/gui/qsimulat0r.cc b/simulat0r/gui/qsimulat0r.cc index 36cf9ae..a5ae2d9 100644 --- a/simulat0r/gui/qsimulat0r.cc +++ b/simulat0r/gui/qsimulat0r.cc @@ -97,6 +97,7 @@ public: static const int keyUp=16777235; static const int keyDown=16777237; static const int keyEnter=16777227; + static const int keyAltEnter=32; // Space static const int keyLeft=16777234; static const int keyRight=16777236; LCD* te; @@ -152,6 +153,7 @@ public: if(event->key()==keyUp) clearBit(buttonState,BTN_UP); if(event->key()==keyDown) clearBit(buttonState,BTN_DOWN); if(event->key()==keyEnter) clearBit(buttonState,BTN_ENTER); + if(event->key()==keyAltEnter) clearBit(buttonState,BTN_ENTER); if(event->key()==keyLeft) clearBit(buttonState,BTN_LEFT); if(event->key()==keyRight) clearBit(buttonState,BTN_RIGHT); } @@ -161,6 +163,7 @@ public: if(event->key()==keyUp) setBit(buttonState,BTN_UP); if(event->key()==keyDown) setBit(buttonState,BTN_DOWN); if(event->key()==keyEnter) setBit(buttonState,BTN_ENTER); + if(event->key()==keyAltEnter) setBit(buttonState,BTN_ENTER); if(event->key()==keyLeft) setBit(buttonState,BTN_LEFT); if(event->key()==keyRight) setBit(buttonState,BTN_RIGHT); }