WizardStan
Mega GP Mania
- Joined
- May 24, 2008
- Messages
- 16,731
I don't know why you need a Pandora to prove it, the problem is pretty evident
1) Press right shift: a "R_SHIFT Down" event is sent. Game says "ahah, right shift is being pressed"
2) Press other right shift: another "R_SHIFT Down" event is sent. Game says "ahah, right shift is being pressed"
3) Release one of the shifts: a "R_SHIFT Up" event is sent. Game says "ahah, right shift is no longer being pressed"
The game is now no longer aware that one of the shifts is being pressed, whatever that shift may be supposed to do.
We can get into other possible problems, like if it assumes a specific state, and pressing and releasing the button changes the state, you could end up changing it twice. It's a recipe for confusion.
That being said, my keyboard layout had three shift keys as well. I acknowledged the problem and said that it wasn't the end of the world: the odds of it happening are already very small, and when it does happen it should be easily solved by simply letting go of the offending key and pressing it again so it's not like a deadly bug, worst case is you accidentally drop your shields for a moment or whatever that shift button is doing.
Now, THAT being said, it should still only be done if it legitimately brings something useful to the table, enough to balance out the potential risk.
1) Press right shift: a "R_SHIFT Down" event is sent. Game says "ahah, right shift is being pressed"
2) Press other right shift: another "R_SHIFT Down" event is sent. Game says "ahah, right shift is being pressed"
3) Release one of the shifts: a "R_SHIFT Up" event is sent. Game says "ahah, right shift is no longer being pressed"
The game is now no longer aware that one of the shifts is being pressed, whatever that shift may be supposed to do.
We can get into other possible problems, like if it assumes a specific state, and pressing and releasing the button changes the state, you could end up changing it twice. It's a recipe for confusion.
That being said, my keyboard layout had three shift keys as well. I acknowledged the problem and said that it wasn't the end of the world: the odds of it happening are already very small, and when it does happen it should be easily solved by simply letting go of the offending key and pressing it again so it's not like a deadly bug, worst case is you accidentally drop your shields for a moment or whatever that shift button is doing.
Now, THAT being said, it should still only be done if it legitimately brings something useful to the table, enough to balance out the potential risk.