RetroArch
usbkeyboard.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------
2 
3 usbkeyboard.h -- Usb keyboard support(boot protocol)
4 
5 Copyright (C) 2008, 2009
6 DAVY Guillaume davyg2@gmail.com
7 dhewg
8 
9 This software is provided 'as-is', without any express or implied
10 warranty. In no event will the authors be held liable for any
11 damages arising from the use of this software.
12 
13 Permission is granted to anyone to use this software for any
14 purpose, including commercial applications, and to alter it and
15 redistribute it freely, subject to the following restrictions:
16 
17 1. The origin of this software must not be misrepresented; you
18 must not claim that you wrote the original software. If you use
19 this software in a product, an acknowledgment in the product
20 documentation would be appreciated but is not required.
21 
22 2. Altered source versions must be plainly marked as such, and
23 must not be misrepresented as being the original software.
24 
25 3. This notice may not be removed or altered from any source
26 distribution.
27 
28 -------------------------------------------------------------*/
29 
30 #ifndef __USBKEYBOARD_H__
31 #define __USBKEYBOARD_H__
32 
33 #ifdef __cplusplus
34  extern "C" {
35 #endif /* __cplusplus */
36 
37 typedef enum
38 {
43 
44 typedef enum
45 {
50 
51 typedef struct
52 {
56 
58 
61 
63 void USBKeyboard_Close(void);
64 
65 bool USBKeyboard_IsConnected(void);
66 s32 USBKeyboard_Scan(void);
67 
68 s32 USBKeyboard_SetLed(const USBKeyboard_led led, bool on);
70 
71 #ifdef __cplusplus
72  }
73 #endif /* __cplusplus */
74 
75 #endif /* __USBKEYBOARD_H__ */
76 
int32_t s32
32bit signed integer
Definition: gctypes.h:24
s32 USBKeyboard_Deinitialize(void)
Definition: usbkeyboard.c:218
Definition: usbkeyboard.h:46
Definition: usbkeyboard.h:51
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
USBKeyboard_eventType
Definition: usbkeyboard.h:37
void(* eventcallback)(USBKeyboard_event event)
Definition: usbkeyboard.h:57
Definition: usbkeyboard.h:47
USBKeyboard_led
Definition: usbkeyboard.h:44
u8 keyCode
Definition: usbkeyboard.h:54
s32 USBKeyboard_ToggleLed(const USBKeyboard_led led)
Definition: usbkeyboard.c:483
Definition: usbkeyboard.h:41
s32 USBKeyboard_SetLed(const USBKeyboard_led led, bool on)
Definition: usbkeyboard.c:466
void USBKeyboard_Close(void)
Definition: usbkeyboard.c:384
s32 USBKeyboard_Scan(void)
Definition: usbkeyboard.c:406
struct _cl_event * event
Definition: glext.h:8406
USBKeyboard_eventType type
Definition: usbkeyboard.h:53
s32 USBKeyboard_Open(const eventcallback cb)
Definition: usbkeyboard.c:225
s32 USBKeyboard_Initialize(void)
Definition: usbkeyboard.c:205
Definition: usbkeyboard.h:39
Definition: usbkeyboard.h:48
Definition: usbkeyboard.h:40
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
bool USBKeyboard_IsConnected(void)
Definition: usbkeyboard.c:398