Any ideas on how to find and bind that joy stick to do something useful
with Tcl/Tk?
Thanks!
First, let's check eTcl understand your hardware setup: start eTcl with
no argument to run in console mode (e.g. from shortcut in Start menu),
and try to enter some text with numpad, and move cursor with joypad.
Normally, Joypad hotkeys are automatically bind to Up/Down/Left/Right
keys. I've just double-checked it again on 2 smartphone devices I have
available for testing, and it works fine (tested with eTcl 1.0-rc1, but
nothing related to key bindings changed recently).
> Any ideas on how to find and bind that joy stick to do something useful
> with Tcl/Tk?
If previous test works, here are some hints to consider when programming
applications targeting smartphone devices:
- get sure which window has focus, and eventually force it. Windows
management is very specific on smartphone (even different than
PocketPC), so using "focus" and "raise" may help
- While keypress/keyrelease events are processed the usual way by
O.S., hotkeys are managed in a quite different way by WinCE (joypad are
hotkeys). Events are sent to active menubar, not to window. eTcl takes
care of forwarding those hotkeys message as normal key events to window
having the focus. But you still have to create a menubar to receive
them, or they might be received by console instead
- For lower level processing of hotkeys, or if your hardware use some
uncommon hotkey mapping, you may look at the wce extension, which is of
course part of eTcl:
http://www.evolane.com/software/etcl/wce.html
Hope this will help you do lot of "useful things with Tcl/Tk" ;-)
Eric
-----
Eric Hassold
Evolane - http://www.evolane.com/