Added ability to switch windows by clicking on them.

Added clipping option to window.
Refactored test code into own classes.
This commit is contained in:
Joey Payne 2014-02-03 15:56:20 -07:00
commit ce5295348e
2 changed files with 166 additions and 27 deletions

View file

@ -29,7 +29,7 @@ class EventSource(object):
class WindowEventSource(EventSource):
mouse_events = ['mouse-enter', 'mouse-leave', 'drag', 'mouse-move', 'hover']
mouse_wheel_events = ['scroll-up', 'scroll-down']
mouse_wheel_events = ['scroll']
mouse_button_down_events = ['mouse-right', 'mouse-left', 'mouse-middle']
mouse_button_drag_events = ['mouse-right-drag', 'mouse-left-drag', 'mouse-middle-drag']
mouse_button_up_events = ['mouse-right-up', 'mouse-left-up',