Login  Register

Input events - Design help

Posted by krishnak on Feb 27, 2013; 2:30pm
URL: https://forum.jogamp.org/Input-events-Design-help-tp4028400.html

Let me explain what I am trying to achieve.

I have managed to get Jmonkey code working on a Raspberry Pi with Jogl by all your help.

I have few hardware peripherals attached to the RaspberryPi's GPIO port. For simplicity let us assume that they are buttons.

I have written a JNI library and Multi threaded Java API to communicate with the GPIO of the Raspberry Pi.

Any Java application can get the status of the button by calling this API and registering  event handlers.

I have tested this and it works in a stand alone Java app.

Now I would like to use JMonkey and JOGL to develop a UI to interact with this API. i.e when a button is pressed in this external hardware - I would like to have on screen changes. i.e camera movement or object movement.

How do I plug my events in to either JOGL input or Jmonkey input stream?