Output device id should not be hardcoded.
Switching to top-leftmost originated coordinate system.

Additionally, providing support for top mode/arrow and right hand-side control buttons.
Add a coordinate system reference.
merge
merged code