Author |
Message |
kijjaz
Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
Posted: Tue Jul 24, 2007 11:42 pm Post subject:
HID Problem: joystick button give alternating result |
|
|
I've got some USB HID probem with some joystick
(some has no such problem)
It's this:
When pushing a button, or changing axis value,
instead of only BUTTON ON ..
or just axis value,
I've got the value alternating between UP and DOWN
or axis value and 0.0000
(like this:)
Code: | joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000
joystick axis 0 : 0.000000
joystick axis 0 : -1.000000 |
Code: | joystick button 8 down
joystick button 8 up
joystick button 8 down
joystick button 8 up
joystick button 8 down
joystick button 8 up
joystick button 8 down
joystick button 8 up
joystick button 8 down
joystick button 8 up
joystick button 8 down
joystick button 8 up
joystick button 8 down
joystick button 8 up
joystick button 8 down
joystick button 8 up
joystick button 8 down
joystick button 8 up
joystick button 8 down
joystick button 8 up |
I don't think it's related to chuck.
because I've got some joystick working out without this problem.
Is it HID problem?
I'm on Linux (Ubuntu Feisty)
Or did anyone experience this also with joystick on some different settings or OSes?
Thank you, enjoy joysticks. |
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Jul 25, 2007 9:31 am Post subject:
|
|
|
Hmmmmm, never seen that. My first bet would be that it might need calibration? A lack of calibration and perhaps a "deadzone" set too small might give random data spewing from the hid device but the range here (all the way to the extremes) seems a bit too large for that. It's also quite odd that it would affect both buttons and axis. _________________ Kassen |
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Jul 25, 2007 9:33 am Post subject:
|
|
|
OW..... might it have something to do with a poll-rate that's set too high? The poll-rate is the speed at which the computer (or console) asks the joypad what it's doing. I imagine setting it too high could give something like this but I also have to admit I never had to adjust that manually and wouldn't know where to set it. _________________ Kassen |
|
Back to top
|
|
|
kijjaz
Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
Posted: Wed Jul 25, 2007 10:35 am Post subject:
|
|
|
I experience this kind of value shifting with only some hardware settings:
a PlayStation dance pad, connected with PS/2 <-> USB interface
a game joystick with 2 joys together in one USB link
but these works well:
Logitech USB joystick,
a PlayStation light gun, connected with PS/2 <-> USB interface
hmmm.. eh! I still haven't tried with more hardwares.
I'm gonna try now and report. |
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Jul 25, 2007 10:48 am Post subject:
|
|
|
It might be best to report to Spencer, I think Spencer did the Hid stuff and he was a great help to me when I ran into trouble using two identical joypads, I had a fix in just hours after we identified the culprit.
Oh, and could you please talk about that lightgun? What kind of data can you get from it? Anything at all to do with what's being "shot"? That would be so exciting! Does this need any special kind of converter? I do have a EMS converter that's supposed to be able to convert a PS1 lightgun to PS2 format (I think PS2 lightguns use USB). _________________ Kassen |
|
Back to top
|
|
|
kijjaz
Joined: Sep 20, 2004 Posts: 765 Location: bangkok, thailand
Audio files: 4
|
Posted: Wed Jul 25, 2007 7:40 pm Post subject:
|
|
|
After reading about the lightgun technology,
I guess there has to be some flashing content on the screen the gun is aiming
(some content we don't see)
So all I've got from the lightgun as a joystick...
Is button up/down -_-"
bang bang.. click. |
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Jul 25, 2007 10:58 pm Post subject:
|
|
|
Ow. Yes. I read the Wikipedia entry on lightguns now. That's not going to work. Oh, well, it was a nice dream... _________________ Kassen |
|
Back to top
|
|
|
Gasten
Joined: Oct 16, 2006 Posts: 7 Location: Sweden
|
Posted: Sun Jul 29, 2007 4:40 am Post subject:
|
|
|
Hey, what's the joystick's make and model? I've heard that the Xbox-controller maps all it's buttons to axis's that spew out ints/floats something.
Right.. I have to get one too! |
|
Back to top
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Sun Jul 29, 2007 7:01 am Post subject:
|
|
|
Gasten;
I'm not sure about the Xbox models but in general that's not such a weird thing. Some modern joypads for consoles, for example the PS2 ones, use presure sensitive buttons. For example the PS2 uses this in racing games where you push X to accelerate and push it harder to accelerate faster.
PC games (let's lump in Mac and Linux there, it's not like the are less "personal" then Windows) don't tend to use that so normally those buttons shouldn't be mapped that way but for music it might well make sense.
I don't know why this "spewing" happens but I suspect that's where it might come from. _________________ Kassen |
|
Back to top
|
|
|
|