mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Properly send TouchEvents to Servo
This commit is contained in:
parent
6e3c131139
commit
171e826180
3 changed files with 85 additions and 20 deletions
|
@ -62,6 +62,12 @@ public:
|
|||
void MouseUp(float x, float y, capi::CMouseButton b) {
|
||||
capi::mouse_up(x, y, b);
|
||||
}
|
||||
void TouchDown(float x, float y, int32_t id) { capi::touch_down(x, y, id); }
|
||||
void TouchUp(float x, float y, int32_t id) { capi::touch_up(x, y, id); }
|
||||
void TouchMove(float x, float y, int32_t id) { capi::touch_move(x, y, id); }
|
||||
void TouchCancel(float x, float y, int32_t id) {
|
||||
capi::touch_cancel(x, y, id);
|
||||
}
|
||||
void MouseMove(float x, float y) { capi::mouse_move(x, y); }
|
||||
|
||||
void Reload() { capi::reload(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue