mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
gp2x->common menu migration finished, gp2x now only uses input fwk
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@692 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
2c60056042
commit
82abf46f3d
22 changed files with 207 additions and 1765 deletions
11
linux/gp2x.c
11
linux/gp2x.c
|
@ -48,6 +48,12 @@ static void destroy (GtkWidget *widget, gpointer data)
|
|||
gtk_main_quit ();
|
||||
}
|
||||
|
||||
/* faking GP2X pad */
|
||||
enum { GP2X_UP=0x1, GP2X_LEFT=0x4, GP2X_DOWN=0x10, GP2X_RIGHT=0x40,
|
||||
GP2X_START=1<<8, GP2X_SELECT=1<<9, GP2X_L=1<<10, GP2X_R=1<<11,
|
||||
GP2X_A=1<<12, GP2X_B=1<<13, GP2X_X=1<<14, GP2X_Y=1<<15,
|
||||
GP2X_VOL_UP=1<<23, GP2X_VOL_DOWN=1<<22, GP2X_PUSH=1<<27 };
|
||||
|
||||
static gint key_press_event (GtkWidget *widget, GdkEventKey *event)
|
||||
{
|
||||
switch (event->hardware_keycode)
|
||||
|
@ -334,11 +340,6 @@ void gp2x_pd_clone_buffer2(void)
|
|||
}
|
||||
|
||||
/* joy */
|
||||
unsigned long gp2x_joystick_read(int allow_usb_joy)
|
||||
{
|
||||
return current_keys;
|
||||
}
|
||||
|
||||
int gp2x_touchpad_read(int *x, int *y)
|
||||
{
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue