mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-18 15:11:51 +00:00
Add CONTROL_ClearAllButtons
git-svn-id: https://svn.eduke32.com/eduke32@7898 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
640b1c4461
commit
7d96aba66d
3 changed files with 11 additions and 0 deletions
|
@ -50,6 +50,7 @@ void I_ClearAllInput(void)
|
|||
KB_ClearKeysDown();
|
||||
MOUSE_ClearAllButtons();
|
||||
JOYSTICK_ClearAllButtons();
|
||||
CONTROL_ClearAllButtons();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -155,6 +155,7 @@ void CONTROL_ClearAssignments( void );
|
|||
// void CONTROL_GetFunctionInput( void );
|
||||
void CONTROL_GetInput( ControlInfo *info );
|
||||
void CONTROL_ClearButton( int whichbutton );
|
||||
void CONTROL_ClearAllButtons( void );
|
||||
extern float CONTROL_MouseSensitivity;
|
||||
bool CONTROL_Startup(controltype which, int32_t ( *TimeFunction )( void ), int32_t ticspersecond);
|
||||
void CONTROL_Shutdown( void );
|
||||
|
|
|
@ -735,6 +735,15 @@ void CONTROL_ClearButton(int whichbutton)
|
|||
CONTROL_Flags[whichbutton].cleared = TRUE;
|
||||
}
|
||||
|
||||
void CONTROL_ClearAllButtons(void)
|
||||
{
|
||||
CONTROL_ButtonHeldState = 0;
|
||||
CONTROL_ButtonState = 0;
|
||||
|
||||
for (auto & c : CONTROL_Flags)
|
||||
c.cleared = TRUE;
|
||||
}
|
||||
|
||||
void CONTROL_ProcessBinds(void)
|
||||
{
|
||||
if (!CONTROL_BindsEnabled)
|
||||
|
|
Loading…
Reference in a new issue