Forums » Bugs

Probable Bug Concerning Joystick Hats and Strafing

Nov 12, 2003 raybondo link
Ok, I looked at the code and there is a bug with the mac version. When Up or Right were pressed, they were triggering Down, but when they were released they didn't untrigger Down.

I fixed it and it will be in the next update.

This is only for the mac version. If the problem happens with the Windows or Linux versions please tell me. However I think povhats don't exist in linux anyways so there's no problem there. ;)
Nov 13, 2003 HumpyThePenguin link
lol, I don't think its windows, I strafe with my hat all day long and nothing funky goes down :P
Nov 08, 2003 Kuvagh link
Okay, Firemage helped me to confirm that this is probably a bug either in Vendetta, Mac Vendetta or OS X...

When attempting to strafe with a joystick hat, the ship is stuck permanently downstrafing. If only up, left and right are assigned it works fine.

This has been observed on two systems with three different joysticks.
1. G5 with OS X Panther; Cyborg Gold 3D and Logitech Extreme 3D Pro
1. G4? with OS X Jaguar 10.2.6 and a MS Sidewinder (devnull's system)

Apparently moving the hat up triggers +UP and +DOWN. Letting go of the hat triggers -UP, but not -DOWN.

FM wrote up a the following bypass, but strafing up or to the right is "jerky" when using it:

wgaf.cfg

alias StopStrafeUp "alias +JPU 'StrafeUp'; alias -JPU ''; +StrafeUp 0; alias +JPD ''; alias -JPD '+StrafeDown'"
alias StrafeUp "alias +JPU ''; alias -JPU 'StopStrafeUp'; +StrafeUp; +StrafeDown 0; alias +JPD ''; alias -JPD ''"
alias -JPD "+StrafeDown"
alias +JPD ""
alias -JPU ""
alias +JPU "StrafeUp"


config.ini

JOYPOV0UP=+JPU
JOYPOV0RIGHT=+StrafeRight
JOYPOV0DOWN=+JPD
JOYPOV0LEFT=+StrafeLeft

-----
I don't know how many people want to strafe with the hat, but one Linux using pilot really enjoys it so I wanted to try it. Using USB Overdrive to assign keystrokes to the hat for strafing works perfectly, but USB Overdrive removes all steering ability from the stick... which is another matter worthy of it's own thread...

Asp

Nov 08, 2003 StarFreeze link
I remember having similiar joystick problems but I can't get any of my joysticks to work anymore. :(
Nov 08, 2003 Kuvagh link
:(
Nov 08, 2003 FiReMaGe link
Let's say + is the on-press event and - is the on-release event. So actually, when you move the hat to the up direction, it triggers +UP, +DOWN, and -DOWN as its on-press events. When letting the hat move from the up direction back to the center, it triggers -UP as its on-release event. If you move the hat down, it triggers -DOWN as its on-press event. When you let hat move from the down direction back to the center, it triggers nothing as its on-release event.

Since it uses +UP, +DOWN, and -DOWN as its on-press events for the up direction of the hat, it'll constantly trigger all of those while the hat is in the up position (press events seem to be constantly triggers in vendetta and not once). It may be triggering -UP because then that would explain why my bypass has the up strafe being jerky. But then it wouldn't explain why if you only assign +StrafeUp for up and nothing for down, strafing up would work perfectly. As for the right strafe being jerky, I have no idea.

About the bypass, to stop strafing down, you have to strafe up for just a split second. For alias masters, yes, I notice I don't need "alias +JPD ''" in StrafeUp and StopStrafeUp, but it's just there in case the blank alias is removed (so vendetta doesn't unbind +JPD in config.ini.. I'm not sure if it'd really do that).
Nov 10, 2003 Kuvagh link
Please ignore this addition to the thread which I decided wasn't relevant and edited out...