Revision eb2e259d
b/console.h | ||
---|---|---|
53 | 53 |
void kbd_put_keycode(int keycode); |
54 | 54 |
void kbd_put_ledstate(int ledstate); |
55 | 55 |
void kbd_mouse_event(int dx, int dy, int dz, int buttons_state); |
56 |
|
|
57 |
/* Does the current mouse generate absolute events */ |
|
56 | 58 |
int kbd_mouse_is_absolute(void); |
57 | 59 |
|
60 |
/* Of all the mice, is there one that generates absolute events */ |
|
61 |
int kbd_mouse_has_absolute(void); |
|
62 |
|
|
58 | 63 |
struct MouseTransformInfo { |
59 | 64 |
/* Touchscreen resolution */ |
60 | 65 |
int x; |
b/input.c | ||
---|---|---|
153 | 153 |
return QTAILQ_FIRST(&mouse_handlers)->qemu_put_mouse_event_absolute; |
154 | 154 |
} |
155 | 155 |
|
156 |
int kbd_mouse_has_absolute(void) |
|
157 |
{ |
|
158 |
QEMUPutMouseEntry *entry; |
|
159 |
|
|
160 |
QTAILQ_FOREACH(entry, &mouse_handlers, node) { |
|
161 |
if (entry->qemu_put_mouse_event_absolute) { |
|
162 |
return 1; |
|
163 |
} |
|
164 |
} |
|
165 |
|
|
166 |
return 0; |
|
167 |
} |
|
168 |
|
|
156 | 169 |
static void info_mice_iter(QObject *data, void *opaque) |
157 | 170 |
{ |
158 | 171 |
QDict *mouse; |
Also available in: Unified diff