Touch UI and tactile feedback in 1.9.3
by Marcelo Barros
Have you seen that there is a doc about touch UI in this release ? It is very interesting, even for curious like me that don´t have any S60 device with touchscreen. Now, you can use the canvas bind() to listen to some touch pointer events (key_codes was updated), specifying the area of screen you want to monitor. For instance, in the scribble.py example, this feature is used to check when a button is pressed.
Some events cited in this document:
- EButton1Down – Pen down event
- EButton1Up – Pen Up event
- EDrag – Drag event (This event is only received when button 1 is down)
- ESwitchOn – Switch on event caused by a screen tap.
bind usage:
bind(pointer_event, callable, [((x1,y1), (x2,y2))])
The pointer_event can be any one of the Pointer events listed in key_codes.py.
Anyone testing these events ?
Related posts:
- Watch Me – Light Touch v1.00 Watch Me - Light Touch is a fun little application...
- Let’s look at Scribble – First PyS60 Touch Application Python for S60 1.9.3 was the first release to support...
- Touch Stick 1.00 (PyS60 sample code) Touch Stick demonstrates how to code Touch UI device's...
- Nixie Watch v1.20 (for touch screen) Nixie (tube) watch is an amazing analog watch look-a-like, which...
- Sweet Memories v1.00 (touch game) Sweet Memories is a memory card game for touch screen...
Related posts brought to you by Yet Another Related Posts Plugin.