Inputs & Events management

Hello there!

I’m a beginer in JaVa GaMinG ProG and need your help on event managing, i.e. mouse events (and furthermore graphic components events dispatch, but all thing at its time :P). Currently I’m using Swing API but I want to make my own event manager & widjets. So, first, I need to know how to code this “event manager”, including getting back the native inputs of the mouse / keyboard to store their states different structures as a key buffer which I could poll for being acknoledged from keyboard state, and a similar simply way of getting informed about mouse actions. Then manage these events and make a dispatcher to graphic components. What means could I count on? I’d be pleased to see your different implementations of yours “home-made” stuff :slight_smile:

Thanx for your help,

Ouh oO oOo OoOoOh!

LWJGL?

I prepared myself to ths king of answer :wink:
No, I don’t want to use any external library from JAVA (this is the difficulty)…

http://www.cs.umd.edu/hcil/jazz

They have a heirarchical widget architecture with event handling.

I’m not sure what you are heading for?

HmM!.. Too complicated for the moment. I just need to know how to get the keyboard/mouse state without anything from Swing/AWT API. Is this possible with the standalone Java API?

No. AWT is THE basic interface to that.

Jazz/Piccolo needs Swing of course.