[fixed]Gamepad axis wrap

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Auria
Competition winner
Posts: 120
Joined: Wed Feb 18, 2009 1:11 am
Contact:

[fixed]Gamepad axis wrap

Post by Auria »

Hi,

I am trying to use gamepads in irrLicht. It all works fine, except that it tries to define values from -32 768 to 32 768, in a 16-bit signed int. For such a type, 32 767 is the maximum, so when you push the axis to the maximum, to value 32 768, you get -32 768 instead (wrap-around).

I am using irrLicht 1.5 on mac OS X 10.5.6. I also tested trunk and the 1.5 stable branch, both with the same result.

I had a chat on IRC with someone who remembered seeing this bug somewhere, but we both were unable to find it again; so apologies if it's a known bug.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Hmm, funny thing. Was OSX only, now fixed
Auria
Competition winner
Posts: 120
Joined: Wed Feb 18, 2009 1:11 am
Contact:

Post by Auria »

hybrid wrote:Hmm, funny thing. Was OSX only, now fixed
Thanks :)
Post Reply