1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gg: add event handling for mouse down/up and mouse leave/out on VJS (#12917)

This commit is contained in:
playX
2021-12-21 13:31:29 +03:00
committed by GitHub
parent cc2fcb52d6
commit ade14491d4
3 changed files with 141 additions and 19 deletions

View File

@ -901,6 +901,14 @@ pub interface JS.MouseEvent {
getModifierState(keyArg JS.String) JS.Boolean
}
pub interface JS.WheelEvent {
JS.MouseEvent
deltaX JS.Number
deltaY JS.Number
deltaZ JS.Number
deltaMode JS.Number
}
pub interface JS.PointerEvent {
JS.MouseEvent
height JS.Number