LWJGL
June 18, 2013, 13:56:33
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.9.0 released!
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
Lightweight Java Library Game Development
>
Joystick Non-Zero at Start
Pages: [
1
]
« previous
next »
Print
Author
Topic: Joystick Non-Zero at Start (Read 577 times)
AGP
Newbie
Posts: 41
Joystick Non-Zero at Start
«
on:
February 04, 2012, 11:00:58 »
I've posted this years before: whatever analog joystick I may use (I've tested on several), it always has non-zero values for all the axis at runtime. This is a very big issue because it means that every game I write is screwy at first. But the second I use the analog sticks the the axis input functions intuitively. Is there no way to write a Controller.resetAxisValues() method that would clear these initial false values?
Logged
Endolf
Talks Too Much
Posts: 101
Re: Joystick Non-Zero at Start
«
Reply #1 on:
February 06, 2012, 01:10:05 »
LWJGL gets it's joystick values from jinput, jinput gets them from the OS, we can't just reset the values to zero, how would that work with non centred axis?, the best way is to use the event system from jinput, this means your application only gets an axis value when it changes, this means you'll never get the values that the OS initially provides.
Endolf
Logged
Codepage
|
Forums
|
Homepage
|
JInput
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...