Lease this WebApp and get rid of the ads.
Re: Feature request
Tue May 15, 2018 10:04

The src/libkeyboard/keyboard.c is the emulation to put keycode into the emulated Amiga CIA. Check out src/mercenary/main.c to send keycodes. keyboard_sdl() receives the keys from the PC (SDL lib) and processes them. Check out the case "KEYCODE_UP", where it will send the key code when the shift key is pressed; release joystick. If the shift key is not pressend, the joystick will be set; keycode will be released. You could track the alt key (as it is done to the shift or control key) and make the release of joystick being ignored.

  • Re: Feature requestEnjo, Mon May 14 22:40
    Then make it Ctrl or Alt. Why do I want it? Because I'm an old fart, physically damaged by years of futile software development, and every such finger ache adds to my frustration and takes away the... more
    • Re: Feature request — Andreas Eversberg, Tue May 15 10:04
      • DoneEnjo, Sat May 26 06:57
        OK. Done. Thanks for the explanation. I have used Control, because Alt was somehow ignored. Do you accept patches? If yes, here's my small mod: --- src/mercenary/main.c 2018-05-26 15:53:01.852538223... more
        • Re: DoneAndreas Eversberg, Sun May 27 01:42
          Hi Enjo, It does not work with the source in master branch, but I managed to make it work even with ALT key. How should walking/running stop? When releasing ALT key or when pressing UP key again?... more
          • Re: DoneEnjo, Sun May 27 05:19
            Excellent. It should stop after pressing and RELEASING the Up key. Therefore the logic is defined simply as ignoring the release key only when ALT is pressed. Finito.
            • Re: DoneAndreas Eversberg, Sun May 27 10:08
              Ok, now I pushed a patch, so you can keep running using ALT + UP and stop when pressing UP or DOWN (without ALT). Thanx for improving my software.
              • Re: DoneEnjo, Sun May 27 22:44
                It's a pleasure. I wanted to tell you this yesterday, but I had guests: I recalled that in my Targ SDL port, Control key is responsible for locking the movement, not Alt. Alt was for orienting... more
                • Re: DoneAndreas Eversberg, Tue Jun 5 11:32
                  I choose to use CTRL key to control emulation features, like changing rendering, FOV, skipping eris approach, ect... I reversed movement, so I can move in any direction without turning myself -... more
                  • Re: DoneEnjo, Wed Jun 6 00:25
                    OK, understood.
Click here to receive daily updates