PlugIn Development:GameEx Input Keyboard Function

From Spesoft/GameEx Wiki
Revision as of 20:40, 26 April 2014 by Adultery (talk | contribs) (Created page with "==<span style="font-size:150%;">Input Keyboard Function [GameEx]</span>== This function is called when you press a button on the keyboard. You can return <span style="color:re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Input Keyboard Function [GameEx]

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.

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;
}