X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=input.h;h=8572a9508f47addcc244480b40ac81091f0cb74a;hb=39e3b2a589d8fba3b742747d910c7db6fa5de362;hp=c3daa1700e9d8d0212929cad8b455586dfb3841e;hpb=8dcce44300385b12c46d494c06aadcfa35a8bc14;p=xonotic%2Fdarkplaces.git diff --git a/input.h b/input.h index c3daa170..8572a950 100644 --- a/input.h +++ b/input.h @@ -19,16 +19,33 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // input.h -- external (non-keyboard) input devices -void IN_Init (void); +#ifndef INPUT_H +#define INPUT_H -void IN_Shutdown (void); +extern cvar_t in_pitch_min; +extern cvar_t in_pitch_max; + +extern qboolean in_client_mouse; +extern float in_mouse_x, in_mouse_y; + +//enum {input_game,input_message,input_menu} input_dest; void IN_Commands (void); // oportunity for devices to stick commands on the script buffer -void IN_Move (usercmd_t *cmd); +// AK added to allow mouse movement for the menu +void IN_ProcessMove(void); + +void IN_Move (void); // add additional movement on top of the keyboard move cmd +void IN_PreMove(void); +void IN_PostMove(void); + +void IN_Mouse(float mx, float my); + void IN_ClearStates (void); // restores all button and position states to defaults +#endif +