mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
72900fd16b
As it is now a completely separate sub-system, there is a bit of trouble with mouse handling in that curses must be initialized before input for the mouse to work properly, but the basic scheme seems to be working nicely. I suspect the solution to the init order issue is to make have the curses sub-system initialize the terminal input driver, at least for mouse input (ie, maybe just enable/disable mouse handing).
53 lines
782 B
Objective-C
53 lines
782 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 init_input (void);
|
|
void send_connected_devices (void);
|
|
qwaq_devinfo_t *get_device_info (int devid);
|
|
|
|
#endif
|
|
|
|
#endif//__qwaq_input_h
|