C API for BALTECH SDK
keyboard.h
Go to the documentation of this file.
1 
10 #ifndef __BRP_BALTECH_API_CMDS_KEYBOARD_H__
11 #define __BRP_BALTECH_API_CMDS_KEYBOARD_H__
12 #include "../typedefs.h"
19 brp_errcode brp_Keyboard_Exist(brp_protocol protocol, bool* KeyboardConnected);
27 brp_errcode brp_Keyboard_CurrentKey(brp_protocol protocol, unsigned* Key);
43 brp_errcode brp_Keyboard_WaitForKey(brp_protocol protocol, unsigned Timeout, unsigned* Key);
44 #endif
45 
brp_errcode brp_Keyboard_EnableWakeup(brp_protocol protocol, bool Enable)
Enables the keyboard wake-up feature.
brp_errcode brp_Keyboard_CurrentKey(brp_protocol protocol, unsigned *Key)
Returns the keycode of the currently pressed key.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_errcode brp_Keyboard_Exist(brp_protocol protocol, bool *KeyboardConnected)
Checks if a keyboard is connected.
brp_errcode brp_Keyboard_WaitForKey(brp_protocol protocol, unsigned Timeout, unsigned *Key)
Waits until a key press is detected.