version 2.8
Keyboard

Detailed Description

Sub-Module to handle physical keyboards.

Functions

GSourceHandle ginputGetKeyboard (unsigned instance)
 Create a keyboard input instance. More...
 
bool_t ginputGetKeyboardStatus (unsigned instance, GEventKeyboard *pkeyboard)
 Get the current keyboard status. More...
 
bool_t ginputSetKeyboardLayout (unsigned instance, const void *pLayout)
 Set the keyboard layout. More...
 

Function Documentation

GSourceHandle ginputGetKeyboard ( unsigned  instance)

Create a keyboard input instance.

Parameters
[in]instanceThe ID of the keyboard input instance (from 0 to 9999)
Returns
The source handle of the created input instance
bool_t ginputGetKeyboardStatus ( unsigned  instance,
GEventKeyboard *  pkeyboard 
)

Get the current keyboard status.

Parameters
[in]instanceThe ID of the keyboard input instance
[in]pkeyboardThe keyboard event struct
Returns
Returns FALSE on an error (eg invalid instance)
bool_t ginputSetKeyboardLayout ( unsigned  instance,
const void *  pLayout 
)

Set the keyboard layout.

Parameters
[in]instanceThe ID of the keyboard input instance
[in]pLayoutThe keyboard layout micro-code. Passing NULL defaults to the driver's default layout.
Returns
Returns FALSE on an error (eg invalid instance)