X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.h;h=9ac30e81504be1640a845aa48668105bf218da4c;hb=b6b0bffba1968bc405ae6dea1a271811700cf03b;hp=bf0755e7a300c20f2dbd3ca0b43248c4677ec1b2;hpb=b944e5a4e57c1a1ba44dff4ffafdee4edd5b5d99;p=16.git diff --git a/src/lib/16_in.h b/src/lib/16_in.h index bf0755e7..9ac30e81 100755 --- a/src/lib/16_in.h +++ b/src/lib/16_in.h @@ -42,7 +42,7 @@ //#define TESTCONTROLNOISY #endif -extern byte testkeyin,testcontrolnoisy; +extern boolean testkeyin,testcontrolnoisy,testctrltype; //if else for gfxtesting and direction //player[pn].d == 2 || @@ -169,8 +169,6 @@ typedef enum { ctrl_Joystick, ctrl_Joystick1 = ctrl_Joystick,ctrl_Joystick2, ctrl_Mouse, - ctrl_Joypad, - ctrl_Joypad1 = ctrl_Joypad,ctrl_Joypad2 } ControlType; typedef enum { motion_Left = -1,motion_Up = -1, @@ -211,10 +209,6 @@ typedef struct { joyMultXL,joyMultYL, joyMultXH,joyMultYH; } JoystickDef; -typedef struct -{ - boolean w; -} JoypadDef; typedef struct { @@ -231,6 +225,7 @@ typedef struct byte near pdir; //previous direction~ //byte near kd[2]; //array of arrow key pressed word speed; //player speed! + word spt; //speed per tile //0000 planar_buf_t huge *data; //supposively the sprite sheet data // planar_buf_t data; //supposively the sprite sheet data ////0000---- @@ -252,7 +247,6 @@ typedef struct { boolean MousePresent; boolean JoysPresent[MaxJoys]; - boolean JoyPadPresent[MaxPads]; boolean Keyboard[NumCodes]; boolean Paused; char LastASCII; @@ -260,7 +254,6 @@ typedef struct KeyboardDef KbdDefs[MaxKbds]; JoystickDef JoyDefs[MaxJoys]; - JoypadDef JoypadDefs[MaxPads]; } inpu;*/ #ifdef DEMO0 @@ -311,5 +304,6 @@ extern boolean IN_UserInput(dword delay,boolean clear); extern boolean IN_KeyDown(byte code); extern void IN_ClearKey(byte code); extern boolean IN_qb(byte kee); +void IN_initplayer(player_t *player, word pn); #endif