X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=input.h;h=b4262bc0f0ef9a08e460e7338d8266a330c8a30e;hb=9eb3de757a997becb8406417a4bf613f4cb04900;hp=ff0aa6f2d5dd4ade58b7cd091a290705565a4de2;hpb=219e917c414052ad3adbb4e9a652b55757a7b6a9;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/input.h b/input.h index ff0aa6f..b4262bc 100644 --- a/input.h +++ b/input.h @@ -7,7 +7,6 @@ #include "vg/vg_console.h" #include "vg/vg_input.h" #include "vg/vg_m.h" -#include "conf.h" #include "font.h" enum sr_bind{ @@ -328,7 +327,8 @@ static void skaterift_preupdate_inputs(void) setbtn( k_srbind_mdown, buttons[ SDL_CONTROLLER_BUTTON_DPAD_DOWN ] ); setbtn( k_srbind_mback, buttons[ SDL_CONTROLLER_BUTTON_B ] ); setbtn( k_srbind_maccept,buttons[ SDL_CONTROLLER_BUTTON_A ] ); - setbtn( k_srbind_mopen, buttons[ SDL_CONTROLLER_BUTTON_GUIDE ] ); + setbtn( k_srbind_mopen, buttons[ SDL_CONTROLLER_BUTTON_START ] ); + setbtn( k_srbind_mback, buttons[ SDL_CONTROLLER_BUTTON_START ] ); float *axis = controller->axises; @@ -355,8 +355,8 @@ static void skaterift_preupdate_inputs(void) if( lh > sensitivity ) setbtn( k_srbind_mright, 1 ); if( lh < -sensitivity ) setbtn( k_srbind_mleft, 1 ); - if( lv > sensitivity ) setbtn( k_srbind_mup, 1 ); - if( lv < -sensitivity ) setbtn( k_srbind_mdown, 1 ); + if( lv > sensitivity ) setbtn( k_srbind_mdown, 1 ); + if( lv < -sensitivity ) setbtn( k_srbind_mup, 1 ); } srinput.axis_states[ k_sraxis_grab ][0] =