summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/i_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/i_video.c')
-rw-r--r--apps/plugins/doom/i_video.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c
index dd47cdbe2b..7023e8f87c 100644
--- a/apps/plugins/doom/i_video.c
+++ b/apps/plugins/doom/i_video.c
@@ -158,7 +158,9 @@ void I_ShutdownGraphics(void)
158 158
159#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \ 159#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \
160 (CONFIG_KEYPAD == IPOD_1G2G_PAD) 160 (CONFIG_KEYPAD == IPOD_1G2G_PAD)
161//#define DOOMBUTTON_SCROLLWHEEL 161#define DOOMBUTTON_SCROLLWHEEL
162#define DOOMBUTTON_SCROLLWHEEL_CC BUTTON_SCROLL_BACK
163#define DOOMBUTTON_SCROLLWHEEL_CW BUTTON_SCROLL_FWD
162#define DOOMBUTTON_UP BUTTON_MENU 164#define DOOMBUTTON_UP BUTTON_MENU
163#define DOOMBUTTON_WEAPON BUTTON_SELECT 165#define DOOMBUTTON_WEAPON BUTTON_SELECT
164#define DOOMBUTTON_LEFT BUTTON_LEFT 166#define DOOMBUTTON_LEFT BUTTON_LEFT
@@ -493,6 +495,26 @@ static inline void getkey()
493 holdbutton=rb->button_hold(); 495 holdbutton=rb->button_hold();
494#endif 496#endif
495 497
498#ifdef DOOMBUTTON_SCROLLWHEEL
499 /* use button_get(false) for clickwheel checks */
500 int button; /* move me */
501 button = rb->button_get(false);
502 switch(button){
503 case DOOMBUTTON_SCROLLWHEEL_CC | BUTTON_REPEAT:
504 case DOOMBUTTON_SCROLLWHEEL_CC:
505 event.type = ev_scroll;
506 event.data1=-1;
507 D_PostEvent(&event);
508 break;
509 case DOOMBUTTON_SCROLLWHEEL_CW | BUTTON_REPEAT:
510 case DOOMBUTTON_SCROLLWHEEL_CW:
511 event.type = ev_scroll;
512 //event.data1=KEY_LEFTARROW;
513 event.data1=1;
514 D_PostEvent(&event);
515 break;
516 }
517#endif
496 newbuttonstate = rb->button_status(); 518 newbuttonstate = rb->button_status();
497#ifdef DOOMBUTTON_SCROLLWHEEL 519#ifdef DOOMBUTTON_SCROLLWHEEL
498 newbuttonstate |= read_scroll_wheel(); 520 newbuttonstate |= read_scroll_wheel();