PlugIn Development:GameEx Input Keyboard Function: Difference between revisions
Jump to navigation
Jump to search
| Line 3: | Line 3: | ||
You can return <span style="color:red;">'''TRUE'''</span> to continue processing the event or return <span style="color:red;">'''FALSE'''</span> and GameEx will not initialize the keyboard event. | You can return <span style="color:red;">'''TRUE'''</span> to continue processing the event or return <span style="color:red;">'''FALSE'''</span> and GameEx will not initialize the keyboard event. | ||
The <span style="color:red;">'''Code'''</span> and <span style="color:red;">'''UsingDirectInput'''</span> parameters are passed as the user presses a keyboard key. | The <span style="color:red;">'''Code'''</span> and <span style="color:red;">'''UsingDirectInput'''</span> parameters are passed as the user presses a keyboard key. | ||
<br /><br /> | |||
<span style="color:darkred;">'' | <span style="color:darkred;"><b>PLEASE NOTE:</b> ''This function only fires when the GameEx UI is visible.''</span> | ||
==Code Examples== | ==Code Examples== | ||
Revision as of 22:27, 26 April 2014
GameEx: Input Keyboard Function Overview
This function is called when you press a button on the keyboard.
You can return TRUE to continue processing the event or return FALSE and GameEx will not initialize the keyboard event.
The Code and UsingDirectInput parameters are passed as the user presses a keyboard key.
PLEASE NOTE: This function only fires when the GameEx UI is visible.
Code Examples
VB.NET syntax:
Public Function Input_Keyboard(ByVal code As Integer, ByVal usingdirectinput As Boolean) As Boolean
Return True
End Function
C# syntax:
public bool Input_Keyboard(int code, bool usingdirectinput)
{
return true;
}