mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 15:51:36 +00:00
e942fe6528
The queues in the curses resources struct have been cleaned up and the threading support code (including for the queues (pipes, really)) has been moved to its own file. The input test app currently just prints the devices and the events as they come in, but demonstrates the new input system working in a separate thread (though it is currently in with the curses thread).
52 lines
758 B
Objective-C
52 lines
758 B
Objective-C
#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
|
|
string_t name;
|
|
string_t id;
|
|
#endif
|
|
int numaxes;
|
|
#ifdef __QFCC__
|
|
in_axisinfo_t *axes;
|
|
#else
|
|
pointer_t axes;
|
|
#endif
|
|
int numbuttons;
|
|
#ifdef __QFCC__
|
|
in_axisinfo_t *buttons;
|
|
#else
|
|
pointer_t buttons;
|
|
#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
|
|
|
|
void send_connected_devices (void);
|
|
qwaq_devinfo_t *get_device_info (int devid);
|
|
|
|
#endif
|
|
|
|
#endif//__qwaq_input_h
|