NEWT KeyListener on Android

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

NEWT KeyListener on Android

Pedro
Hello,

I've got a hardware USB keyboard plugged into an Android device running a NEWT backed application.
I've noticed that some keys don't seem to work the same when running a Linux desktop version of the same app, namely the following keys which are of interest to me:

Insert
Delete
Home
End
Arrow Keys
Comma Key
Tilda Key

Are you able to shed any light on this? Is it to do with what Android OS supports itself in terms of KeyEvent?
(https://developer.android.com/reference/android/view/KeyEvent)

Thanks for your time,

Pedro
Reply | Threaded
Open this post in threaded view
|

Re: NEWT KeyListener on Android

gouessej
Administrator
Hello

What do you mean by "some keys don't seem to work the same"?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: NEWT KeyListener on Android

Pedro
Sorry, what I mean is the Keys I listed don't fire any KeyListener interface callbacks for keyPressed or keyReleased when running on Android, but they do on Linux.

This morning I had a go at using the same USB keyboard to edit things in the Android OS Settings App and the Home, End, Delete and directional Arrow Keys were all working there.

I'm running JOGL v2.3.1.
Reply | Threaded
Open this post in threaded view
|

Re: NEWT KeyListener on Android

gouessej
Administrator
By the way, we only maintain the very latest version. Therefore, please use JOGL 2.3.2.

I have no such hardware, I can't use an USB keyboard on my smartphone and I use an old version of Android. Which version of Android do you use?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: NEWT KeyListener on Android

Pedro
Ok, I'll look to update the latest now & try again.

I'm running Android version 5.1.1 Lollipop - its a TV box so I have the usual peripheral slots ( USB, HDMI, Ethernet ).

The keyboard is a bog-standard Logitech wireless USB keyboard. Not sure if a paired bluetooth keyboard would work with a phone / tablet?
Reply | Threaded
Open this post in threaded view
|

Re: NEWT KeyListener on Android

Pedro
Couldn't test with 2.3.2 as my android app wouldn't work at all anymore, it couldn't find the libglugen native libraries anymore, has the build process changed for building an Android JOGL app in 2.3.2 vs 2.3.1?
Reply | Threaded
Open this post in threaded view
|

Re: NEWT KeyListener on Android

gouessej
Administrator
No, the build process didn't change. JOGL 2.3.2 has been tested under Android and some contributors use it on this platform.
Julien Gouesse | Personal blog | Website