Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 10:45:27 pm
Xith3D CommunityGeneral CategoryNews (Moderators: Marvin Fröhlich, 'n ddrylliog)HIAL update
Pages: [1]
Print
Author Topic: HIAL update  (Read 1766 times)
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« on: 10. June 2007, 01:21:55 pm »

I have created a new HIAL version. It is also online (1.6.5) at http://input.jtank.net/. The new versions has some additional KeyCodes, but has also lost two of them. The VK_SHIFT and VK_CONTROL have been removed and instead there are VK_LEFT_SHIFT, VK_RIGHT_SHIFT, VK_LEFT_CONTROL and VK_RIGHT_CONTROL. Some key codes did not work for AWT and some not for LWJGL. This is fixed now.

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 24. June 2007, 11:03:47 pm »

And again a new HIAL release (1.6.6). AWTMouse and AWTKeyboard are now synchronized with the update() method. This means, AWT input is now synchronized with the rendering thread (just as LWJGL is per se).

Now nothing needs to be specially synchronized with the rendering thread when it is triggered by an input event (no matter which OpenGLLayer is used).

The AWT synchronization can be switched off by invoking
Code:
AWTMouse.setSynchronized( false );
AWTKeyboard.setSynchronized( false );

It is done by queueing the AWT input events through abstract HIAL input events. You may have noticed, that the HIAL input listener method signatures have become quite big. It would be very easy now to make the listeners work with these input event classes. Then the onMouseButtonPressed event for example would look like this:
Code:
// currently
public void onMouseButtonPressed(MouseDevice mouse, int button, int x, int y, long when, long lastWhen)
// afterwards
public void onMouseButtonPressed(MousePressedEvent e)

I think, this is more convenient, now where we have so many worthful event properties. What do you think?

Marvin

[EDIT by Amos Wenger : monday, 25 june 2007 : bbtag error]
« Last Edit: 25. June 2007, 07:17:30 am by Amos Wenger » Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #2 on: 25. June 2007, 07:19:53 am »

It is done by queueing the AWT input events through abstract HIAL input events. You may have noticed, that the HIAL input listener method signatures have become quite big. It would be very easy now to make the listeners work with these input event classes. Then the onMouseButtonPressed event for example would look like this:
Code:
// currently
public void onMouseButtonPressed(MouseDevice mouse, int button, int x, int y, long when, long lastWhen)
// afterwards
public void onMouseButtonPressed(MousePressedEvent e)

I think, this is more convenient, now where we have so many worthful event properties. What do you think?
Definitely for it Smiley Don't forget to use pools to reduce GC.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 25. June 2007, 12:08:45 pm »

Don't forget to use pools to reduce GC.

Of course I do this already Smiley.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 29. June 2007, 12:37:10 pm »

The change in HIAL is done. Now all the HIAL's event methods use event classes publicly.

Marvin
Logged
William Denniss
Just dropped in

Offline Offline

Posts: 5


for(;;);


View Profile WWW
« Reply #5 on: 02. July 2007, 10:26:11 pm »

Nice changes Smiley

Cheers,
Will
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #6 on: 05. July 2007, 11:14:06 pm »

The latest HIAL version (the one currently used in Xith3D) is now on SVN.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic