General Category > Technical Support

Why are the joystick buttons shown as keyboard keys in AMSDOS but not in games?

(1/3) > >>

khaz:
Following the excellent suggestion in another thread, I used the second port of my Joystick splitter to remap all the inputs in Chase HQ so I could be able to use both buttons on an unpatched game. At the remap screen, you can press either ( ] r t f g or the corresponding Joystick buttons and directions, and use either to control the car ingame.

But why can't I do it with the first controller port? The direction cross may be different, but the buttons show Z and X when pressed in AMSDOS, yet I can never remap the second button in any game. Why is that?

EgoTrip:
The keys and the joystick 0 have different mappings. However joystick 1 has the same key numbers as keys on the keyboard which is why.

ZbyniuR:
Nice picture, but miss few details.
Caps Lock (70)  have codes 253,253,254 and can be changed like any other key, exept Shift (21) and Ctrl (23).
Fire3 in joy0 is number 78 and default have no codes.
Fire3 in joy1 is number 54 the same like key B on keyboard. :)

arnoldemu:

--- Quote from: khaz on 22:28, 04 March 16 ---Following the excellent suggestion in another thread, I used the second port of my Joystick splitter to remap all the inputs in Chase HQ so I could be able to use both buttons on an unpatched game. At the remap screen, you can press either ( ] r t f g or the corresponding Joystick buttons and directions, and use either to control the car ingame.

But why can't I do it with the first controller port? The direction cross may be different, but the buttons show Z and X when pressed in AMSDOS, yet I can never remap the second button in any game. Why is that?

--- End quote ---
Most games only use first controller port and have menu selection for joystick. The code in the game to redefine the keys ignores the first joystick because it is in the menu. It is treated as a special case.

On most cpcs the second joystick is not used because you need to use a joystick splitter to use it.

The second joystick shares some keys on the keyboard so can't be ignored in the redefine keys code so it can be used.

EgoTrip:
I never made that picture, its a screen grab from a PDF I downloaded from somewhere (Cant remember) years ago.

Just checked, it was made by someone called Bert Post Uiterweer

Navigation

[0] Message Index

[#] Next page

Go to full version
Powered by SMFPacks Media Embedder
Powered by SMFPacks Alerts Pro Mod
Powered by SMFPacks Mentions Pro Mod