projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19980928-4
[rocksndiamonds.git]
/
src
/
joystick.h
diff --git
a/src/joystick.h
b/src/joystick.h
index 64a8166d5cc95115802130b5f8a6edaa0da03f32..205f51f8ac6b37fb3e4dc8f830a10042723e2339 100644
(file)
--- a/
src/joystick.h
+++ b/
src/joystick.h
@@
-41,8
+41,8
@@
#define JOY_RIGHT MV_RIGHT
#define JOY_UP MV_UP
#define JOY_DOWN MV_DOWN
#define JOY_RIGHT MV_RIGHT
#define JOY_UP MV_UP
#define JOY_DOWN MV_DOWN
-#define JOY_BUTTON_1
16
-#define JOY_BUTTON_2
32
+#define JOY_BUTTON_1
(1<<4)
+#define JOY_BUTTON_2
(1<<5)
#define JOY_BUTTON (JOY_BUTTON_1 | JOY_BUTTON_2)
#define JOY_BUTTON_NOT_PRESSED 0
#define JOY_BUTTON_PRESSED 1
#define JOY_BUTTON (JOY_BUTTON_1 | JOY_BUTTON_2)
#define JOY_BUTTON_NOT_PRESSED 0
#define JOY_BUTTON_PRESSED 1