2021-09-21 03:58:10 +00:00
|
|
|
#ifndef __qwaq_input_h
|
|
|
|
#define __qwaq_input_h
|
|
|
|
|
|
|
|
#include "QF/input.h"
|
|
|
|
|
|
|
|
typedef struct qwaq_devinfo_s {
|
|
|
|
int devid;
|
|
|
|
#ifdef __QFCC__
|
|
|
|
string name;
|
|
|
|
string id;
|
|
|
|
#else
|
2022-01-18 03:11:14 +00:00
|
|
|
pr_string_t name;
|
|
|
|
pr_string_t id;
|
2021-09-21 03:58:10 +00:00
|
|
|
#endif
|
|
|
|
int numaxes;
|
|
|
|
#ifdef __QFCC__
|
|
|
|
in_axisinfo_t *axes;
|
|
|
|
#else
|
2022-01-18 03:11:14 +00:00
|
|
|
pr_ptr_t axes;
|
2021-09-21 03:58:10 +00:00
|
|
|
#endif
|
|
|
|
int numbuttons;
|
|
|
|
#ifdef __QFCC__
|
|
|
|
in_axisinfo_t *buttons;
|
|
|
|
#else
|
2022-01-18 03:11:14 +00:00
|
|
|
pr_ptr_t buttons;
|
2021-09-21 03:58:10 +00:00
|
|
|
#endif
|
|
|
|
} qwaq_devinfo_t;
|
|
|
|
|
|
|
|
#ifdef __QFCC__
|
|
|
|
|
|
|
|
#include <Object.h>
|
|
|
|
|
|
|
|
#include "ruamoko/qwaq/ui/event.h"
|
|
|
|
#include "ruamoko/qwaq/ui/rect.h"
|
|
|
|
|
|
|
|
|
|
|
|
@class Array;
|
|
|
|
@class Group;
|
|
|
|
@class TextContext;
|
|
|
|
@class View;
|
|
|
|
|
|
|
|
@interface QwaqInput: Object
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2021-09-22 07:22:11 +00:00
|
|
|
void init_input (void);
|
2021-09-21 03:58:10 +00:00
|
|
|
void send_connected_devices (void);
|
|
|
|
qwaq_devinfo_t *get_device_info (int devid);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif//__qwaq_input_h
|