2004-08-23 00:15:46 +00:00
/*
Copyright ( C ) 1996 - 1997 Id Software , Inc .
This program is free software ; you can redistribute it and / or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation ; either version 2
of the License , or ( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE .
See the GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA .
*/
// input.h -- external (non-keyboard) input devices
2006-05-10 22:12:20 +00:00
void IN_ReInit ( void ) ;
2004-08-23 00:15:46 +00:00
void IN_Init ( void ) ;
void IN_Shutdown ( void ) ;
void IN_Commands ( void ) ;
// oportunity for devices to stick commands on the script buffer
2009-05-24 10:11:17 +00:00
void IN_Move ( float * movements , int pnum ) ;
2004-08-23 00:15:46 +00:00
// add additional movement on top of the keyboard move cmd
extern cvar_t in_xflip ;
2010-08-12 09:04:05 +00:00
# ifdef _SDL
2010-08-11 23:55:35 +00:00
void IN_ActivateMouse ( void ) ;
2010-08-12 09:04:05 +00:00
void IN_DeactivateMouse ( void ) ;
# endif
2010-08-14 03:17:33 +00:00
int CL_TargettedSplit ( qboolean nowrap ) ;
2012-10-14 09:00:49 +00:00
//specific events for the system-specific input code to call. may be called outside the main thread (so long as you don't call these simultaneously - ie: use a mutex or only one input thread).
void IN_KeyEvent ( int devid , int down , int keycode , int unicode ) ; //don't use IN_KeyEvent for mice if you ever use abs mice...
void IN_MouseMove ( int devid , int abs , float x , float y , float z , float size ) ;
//system-specific functions
void INS_Move ( float * movements , int pnum ) ;
void INS_Accumulate ( void ) ;
void INS_ClearStates ( void ) ;
void INS_ReInit ( void ) ;
void INS_Init ( void ) ;
void INS_Shutdown ( void ) ;
void INS_Commands ( void ) ; //final chance to call IN_MouseMove/IN_KeyEvent each frame