mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sokol.sapp,gg: add a tool_type
field to gg.TouchPoint
(differenciate different types of touch input) (#15822)
This commit is contained in:
@ -183,3 +183,12 @@ pub enum KeyCode {
|
||||
right_super = 347
|
||||
menu = 348
|
||||
}
|
||||
|
||||
pub enum TouchToolType {
|
||||
unknown
|
||||
finger
|
||||
stylus
|
||||
mouse
|
||||
eraser
|
||||
palm
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ pub:
|
||||
identifier u64
|
||||
pos_x f32
|
||||
pos_y f32
|
||||
tool_type TouchToolType
|
||||
changed bool
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user