Enable to choose between mouse and joystick with alt key
This commit is contained in:
parent
42acd2a2e7
commit
bc1578fbd8
2 changed files with 12 additions and 1 deletions
|
@ -253,7 +253,14 @@ void do_mouse_hack (void)
|
|||
uae_u16 JOY0DAT (void)
|
||||
{
|
||||
do_mouse_hack ();
|
||||
return ((uae_u8)mouse_x) + ((uae_u16)mouse_y << 8) + joy0dir;
|
||||
#ifdef RASPBERRY
|
||||
if (currprefs.pandora_custom_dpad == 0)
|
||||
return joy0dir;
|
||||
if (currprefs.pandora_custom_dpad == 1)
|
||||
return ((uae_u8)mouse_x) | ((uae_u16)mouse_y << 8);
|
||||
#else
|
||||
return ((uae_u8)mouse_x) | ((uae_u16)mouse_y << 8) | joy0dir;
|
||||
#endif
|
||||
}
|
||||
|
||||
uae_u16 JOY1DAT (void)
|
||||
|
|
|
@ -132,7 +132,11 @@ void target_default_options (struct uae_prefs *p, int type)
|
|||
p->pandora_stylusOffset = 0;
|
||||
|
||||
p->pandora_customControls = 0;
|
||||
#ifdef RASPBERRY
|
||||
p->pandora_custom_dpad = 1;
|
||||
#else
|
||||
p->pandora_custom_dpad = 0;
|
||||
#endif
|
||||
p->pandora_custom_up = 0;
|
||||
p->pandora_custom_down = 0;
|
||||
p->pandora_custom_left = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue