Closed acrandal closed 3 years ago
This can be done within Gesture mode, it doesn't need to wrap Cursor mode at all!
Can leverage the getObjectX/Y and isObjectInView to create a returned "corner" enum. Based on those values, we can then build out PIN check features.
Axes in Gesture mode go 0..3712. Corners mode needs to have 6 states. Four corners, one gutter/space between them, and then not in view.
Corners are named/numbered according to the cartesian coordinate system.
Corners mode working!
See new API call: getCorner() which returns a Corner enum.
Merged into develop for the 1.5.0 release that really should be soon.
I ran into a "corners mode" with the Tasmota driver.
Basically, each quadrant from cursor mode is treated as a "corner" so a caller can read the value of the object's location in a simple 0-4 integer (0 being not present).
This could be a nice feature with a simple user interface to implement.