Event handling

jouke on 2006-06-28T09:01:34

I couldn't just leave the code to rest yesterday, so I went a little further. I started working on the (accessible) Event handling.

To make everything as easy as possible, a programmer should normally only worry about one event, namely EVT_OA_SELECT (I'm using OA as the prefix for everything...it stands for Open Accessibility, and currently it's also the name of the module, better suggestions are welcome). EVT_OA_SELECT($object, \&OnSelect) will work like you would expect: if the $object has been selected by the user (in any of the ways that will be defined), it executes the sub OnSelect. If you already have an event handler associated with any control, you can simply use this one beside it and it will do the same.

Tonight I'll implement OA::Config, where you can set/get the configuration of your accessible application (what kind of input device, how many switches, etcetera).