J :
* Key buffer update : Add functions & clean the file
This commit is contained in:
+22
-2
@@ -31,13 +31,17 @@
|
|||||||
BOOL JGEGetKeyState(int key);
|
BOOL JGEGetKeyState(int key);
|
||||||
bool JGEGetButtonState(u32 button);
|
bool JGEGetButtonState(u32 button);
|
||||||
bool JGEGetButtonClick(u32 button);
|
bool JGEGetButtonClick(u32 button);
|
||||||
|
u32 JGEReadKey();
|
||||||
|
void JGEResetInput();
|
||||||
|
|
||||||
#elif LINUX
|
#elif LINUX
|
||||||
|
|
||||||
void JGEControl();
|
void JGEControl();
|
||||||
BOOL JGEGetKeyState(int key);
|
BOOL JGEGetKeyState(int key);
|
||||||
bool JGEGetButtonState(uint32_t button);
|
bool JGEGetButtonState(u32 button);
|
||||||
bool JGEGetButtonClick(uint32_t button);
|
bool JGEGetButtonClick(u32 button);
|
||||||
|
u32 JGEReadKey();
|
||||||
|
void JGEResetInput();
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
@@ -173,6 +177,22 @@ public:
|
|||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
bool GetButtonClick(u32 button);
|
bool GetButtonClick(u32 button);
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
/// Get the next keypress.
|
||||||
|
///
|
||||||
|
/// @return Next pressed button, or 0 if none.
|
||||||
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
u32 ReadButton();
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
/// Reset the input buffer.
|
||||||
|
/// This is necessary because there might be phases when GetButtonState
|
||||||
|
/// or GetButtonClick are used, thereby accumulating keypresses in the
|
||||||
|
/// key buffer.
|
||||||
|
///
|
||||||
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
void ResetInput();
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
/// Get x value of the analog pad.
|
/// Get x value of the analog pad.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user