Skip to main content

How to obtain direct access to framebuffer?

4 replies [Last post]
corvin666
Offline
Joined: 2007-11-16

Hello,

I would like to modify the package so that I would be able to use a custom-drawn keyboard control in my midp applications. I recon that it would require native code that would have direct access to framebuffer in order to draw the keyboard.

So, the question is: where should I put my modifications and how to do it correctly, so that I wouldn't get an access violation errors?

Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04

I see. In that case I think you would need to write an extension to the platform's input mechanism. You can do that for phoneME but of course that feature would then be non-portable and platform-specific. Which phoneME stack do you plan to use? Feature or Advanced?

-- Terrence

corvin666
Offline
Joined: 2007-11-16

Yes, it's OK with non-portability as we develop a java package for our own hardware. Ideally, the java-programmers who will write midlets should not care about the keyboard (and a set of platform-specific controls) at all, it should just be available to the end-user via a single click (say, on an icon in the top bar).

We are already stuck with CLDC based, feature phoneME, MR2 bundle for linux/ARM.

Message was edited by: corvin666

terrencebarr
Offline
Joined: 2004-03-04

Have you considered simply creating your own MIDP CustomItem that implements a virtual keyboard? You can then simply include it into any of your applications whenever you need virtual keyboard input.

-- Terrence

corvin666
Offline
Joined: 2007-11-16

Unfortunately, that wouldn't work. As far as I understand, using MIDP only I won't be able to make a keyboard that would partially overlap current screen and possibly be transparent, which are my requirements.