io/pointer: define new Enter/Leave pointer events

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
Chris Waldon
2020-04-18 22:25:13 -04:00
committed by Elias Naur
parent 52d8a8867d
commit 6501ecf2a0
+8
View File
@@ -95,6 +95,10 @@ const (
Release Release
// Move of a pointer. // Move of a pointer.
Move Move
// Pointer enters an area watching for pointer input
Enter
// Pointer leaves an area watching for pointer input
Leave
) )
const ( const (
@@ -176,6 +180,10 @@ func (t Type) String() string {
return "Cancel" return "Cancel"
case Move: case Move:
return "Move" return "Move"
case Enter:
return "Enter"
case Leave:
return "Leave"
default: default:
panic("unknown Type") panic("unknown Type")
} }