Skip to main content

Touch screen

6 replies [Last post]
hallenberg
Offline
Joined: 2007-01-05
Points: 0

I recently got new hardware to try with phoneME. This one has a touch screen and very few keys. Since the touch screen does not work in phoneME it would be nice to know if there is support for pointing devices at all, and if so, what's needed to get it working.

On a side note "phoneme" is not really optimized for google... =/

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
asg024
Offline
Joined: 2006-11-17
Points: 0

You are right, handle_pointer_port() is the right place to add the pointer events support. events/input_port is the library provide input events handling needed for master mode applications. The events are from keyboard and mouse/pointer now. Now the library implementations are done for QVFb and generic FB devices. The pointer events are supported for QVFb devices only. If you need to support pointer input for generic FB devices you need to extend current FB implementation.

thanks
Sveta

aap031
Offline
Joined: 2006-10-18
Points: 0

Hi!

The problem is just of the same nature as with keyboard - there is no unified interface for pointer events on linux. The device we are primarily target for there is no HW to generate pointer events. Thus there is no platform-specific code for linux/fb.

Thus unfortunately means you need to understand the data format of your touchscreen device driver and place appropriate code into handle_pointer_port(). You can refer to QVfb version for reference, though

Regards,
Andrey

hallenberg
Offline
Joined: 2007-01-05
Points: 0

I suppose that my other wish, to be able to input characters via touch screen (supposedly by showing a display of a keyboard and clicking the corresponding button), is far beyond what you're targetting, and would probably have to be implemented in the individual applications rather than in PhoneME?

Did I mention that we're planning on running on a platform with a very limited amount of buttons (no keypad)? (As well as one with a lot of them.)

aap031
Offline
Joined: 2006-10-18
Points: 0

Hi,

Actually this feature is a good candidate for next release after MR2. I believe it will be seriously considered for implementation. However I cannot guarantee that it happens

Regards,
Andrey

asg024
Offline
Joined: 2006-11-17
Points: 0

In phoneME MR1 pointer events are partly supported for soft buttons only. Touch pad will completely work in phoneME MR2.

best regards,
Sveta

hallenberg
Offline
Joined: 2007-01-05
Points: 0

I'm sorry, but I don't really understand what that means in practice. I'm currently using MR2 b04.

After looking through the source I found handle_pointer_port() in midp/src/events/input_port/fb/native/fb_handle_input.c, which looks like an ideal place to put pointer code. Should I make an effort and do it myself, or would checking out the svn version be appropriate?