Add kbd_mouse_has_absolute()
kbd_mouse_is_absolute tells us whether the current mouse handler is an absolute device. kbd_mouse_has_absolute tells us whether we have any device that is capable of absolute input. This lets us tell a user that they have configured an absolute device but that the guest is not currently using it. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6fef28ee6e
commit
eb2e259d95
2 changed files with 18 additions and 0 deletions
|
|
@ -53,8 +53,13 @@ void qemu_remove_led_event_handler(QEMUPutLEDEntry *entry);
|
|||
void kbd_put_keycode(int keycode);
|
||||
void kbd_put_ledstate(int ledstate);
|
||||
void kbd_mouse_event(int dx, int dy, int dz, int buttons_state);
|
||||
|
||||
/* Does the current mouse generate absolute events */
|
||||
int kbd_mouse_is_absolute(void);
|
||||
|
||||
/* Of all the mice, is there one that generates absolute events */
|
||||
int kbd_mouse_has_absolute(void);
|
||||
|
||||
struct MouseTransformInfo {
|
||||
/* Touchscreen resolution */
|
||||
int x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue