Added window resize handles. Fixed bugs with clicking, dragging and focus events.

This commit is contained in:
Joey Payne 2014-01-30 23:23:52 -07:00
commit 0785a228aa
2 changed files with 167 additions and 14 deletions

View file

@ -35,7 +35,7 @@ class WindowEventSource(EventSource):
mouse_button_up_events = ['mouse-right-up', 'mouse-left-up',
'mouse-middle-up']
mouse_button_events = mouse_button_down_events + mouse_button_up_events + mouse_button_drag_events
window_events = ['resize', 'move', 'focus']
window_events = ['resize', 'move', 'focus', 'focus-lost']
key_events = ['key-down', 'key-up', 'key-repeat']
types = mouse_events + mouse_wheel_events + mouse_button_events +\
window_events + key_events