X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fmupen64plus-input-sdl%2Fsrc%2Fplugin.h;h=1096bfb77ddf178eb63a3fe8bfb9ba8988f4b835;hb=6ff3e5ebff50dd62c9644ca20628a11faee173fb;hp=f5e7bfd32916d650447efd39076eaf0038bea6eb;hpb=48d52ab5e2ab263c49b77c46ec72a6130d31a51a;p=mupen64plus-pandora.git diff --git a/source/mupen64plus-input-sdl/src/plugin.h b/source/mupen64plus-input-sdl/src/plugin.h old mode 100644 new mode 100755 index f5e7bfd..1096bfb --- a/source/mupen64plus-input-sdl/src/plugin.h +++ b/source/mupen64plus-input-sdl/src/plugin.h @@ -100,6 +100,10 @@ enum EButton L_TRIG, MEMPAK, RUMBLEPAK, + R_CBUTTON2, + L_CBUTTON2, + D_CBUTTON2, + U_CBUTTON2, X_AXIS, Y_AXIS, NUM_BUTTONS @@ -113,6 +117,10 @@ typedef struct int axis_deadzone; // -1 for default, or >= 0 for custom value int hat, hat_pos; // hat + hat position; -1 if not assigned int mouse; // mouse button + int mouse_up; // mouse direction pseudo buttons + int mouse_down; + int mouse_left; + int mouse_right; } SButtonMap; typedef struct @@ -130,7 +138,7 @@ typedef struct BUTTONS buttons; // mappings - SButtonMap button[16]; // 14 buttons; in the order of EButton + mempak/rumblepak switches + SButtonMap button[NUM_BUTTONS]; // 14 buttons; in the order of EButton + mempak/rumblepak switches SAxisMap axis[2]; // 2 axis int device; // joystick device; -1 = keyboard; -2 = none int mouse; // mouse enabled: 0 = no; 1 = yes @@ -139,6 +147,10 @@ typedef struct int axis_deadzone[2]; // minimum absolute value before analog movement is recognized int axis_peak[2]; // highest analog value returned by SDL, used for scaling float mouse_sens[2]; // mouse sensitivity + int mouse_up; + int mouse_down; + int mouse_left; + int mouse_right; } SController; /* global data definitions */