projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added not using touch buttons if touch controls are disabled
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index d5f9963bd00a7a658b0a2029afa852d1c03a38e0..4a31bcd6539140624d9e8f0c25f1f7523dc40fc7 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-585,7
+585,7
@@
void HandleWheelEvent(WheelEvent *event)
event->y < 0 ? MB_WHEEL_DOWN :
event->y > 0 ? MB_WHEEL_UP : 0);
event->y < 0 ? MB_WHEEL_DOWN :
event->y > 0 ? MB_WHEEL_UP : 0);
-#if defined(PLATFORM_WIN
32) || defined(PLATFORM_MACOSX
)
+#if defined(PLATFORM_WIN
DOWS) || defined(PLATFORM_MAC
)
// accelerated mouse wheel available on Mac and Windows
wheel_steps = (event->x ? ABS(event->x) : ABS(event->y));
#else
// accelerated mouse wheel available on Mac and Windows
wheel_steps = (event->x ? ABS(event->x) : ABS(event->y));
#else
@@
-2335,6
+2335,14
@@
void HandleKey(Key key, int key_status)
if (HandleGadgetsKeyInput(key))
return; // do not handle already processed keys again
if (HandleGadgetsKeyInput(key))
return; // do not handle already processed keys again
+ // special case: on "space" key, either continue playing or go to main menu
+ if (game_status == GAME_MODE_SCORES && key == KSYM_space)
+ {
+ HandleHallOfFame(0, 0, 0, 0, MB_MENU_CONTINUE);
+
+ return;
+ }
+
switch (game_status)
{
case GAME_MODE_PSEUDO_TYPENAME:
switch (game_status)
{
case GAME_MODE_PSEUDO_TYPENAME: