Hi,
We are developing a keypad driver for a mobile phone like device. Like as usual mobile phone keypad, we need to support two modes of operation.
-- dialling mode- Repeatedly pressing key 1 in this modes causes 111111
-- text mode (sms) - There is a key group associated with each key. For key 2, pressing it continuously causes 2,a,b,c,A,B,C sequence.
The details of the mode is dependent on the application scenario. Whether we are in a dialling application or SMS application.
So our question is how we manage this? What is the usual way of doing this? The driver provides the key code or just the scan code corresponding to the key pressed? We need to give support for GTK+ on this interfaces and run minimo browser over it. Setting the mode in the driver and converting to key codes there means we have to provide a custom IOCTL to set mode. Is that the standard way of doing it? Won't that require changes in the GTK+/ minimo for this?
We'll be grateful for any help/suggestions/web links in this matter. Thanking you, Liz