webOS Userland
Native system APIs for webOS
lgnc_gamepad.h
1 #pragma once
2 #include "lgnc_system.h"
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
9 {
10  int id;
11  int type;
12 };
13 
14 typedef struct LGNC_GAMEPAD_INFO_T LGNC_GAMEPAD_INFO;
15 
16 typedef void(GamePadEventCallback)(LGNC_ADDITIONAL_INPUT_INFO_T *e);
17 typedef void(GamePadHotPlugCallback)(LGNC_GAMEPAD_INFO *gamepad, int count);
18 
19 int LGNC_GAMEPAD_RegisterCallback(GamePadEventCallback *, GamePadHotPlugCallback *);
20 int LGNC_GAMEPAD_UnregisterCallback();
21 
22 #ifdef __cplusplus
23 }
24 #endif
Definition: lgnc_openapi_types.h:67
Definition: lgnc_gamepad.h:9