|
Joystick prob Displaying 1-5 of 5 total.
1
Time_Wizard
|
How do you unpress a joystick button when it's not mapped to one of the b1,b2,etc buttons? When I do something like joy.button[1]=0 it spits out an error and crashes.
If you care, the error says: 'Unknown HVAR1(25,0)(set 0);'
Posted on 2005-07-17 00:42:08
|
Overkill
|
This is probably a bug, that may or may not already be addressed in the upcoming Verge release.
Posted on 2005-07-17 05:47:41
|
anonymous
|
If you think that the joy buttons are read only, maybe there's a workaround.
Um...Something like your own separate array to assist with reading the joy values. If you've got four buttons, make a
joy_plzunpress[4];
or something like that, and then make an
Unpress_Update()
If a joybutton needs to be unpressed, set its joy_plzunpress slot to 1. Unpress_Update() can set this slot back to 0 when the button is actually no longer pressed. Then have your own
GetJoyPress(int button)
function, that will not give you the value unless the plzunpress slot is 0.
Anyway. Maybe a workaround isn't practical here, but it's possible.
Posted on 2005-07-17 08:42:46
|
anonymous
|
Darn login. --Omni
Posted on 2005-07-17 08:43:08
|
Time_Wizard
|
Alright, I'll try that workaround thing. Thanks.
Posted on 2005-07-17 12:39:02
|
Displaying 1-5 of 5 total.
1
|
|