AppleWin: emulated joystick?

5 posts / 0 new
Last post
Offline
Last seen: 3 months 3 weeks ago
Joined: Nov 12 2022 - 16:50
Posts: 197
AppleWin: emulated joystick?

Basically, how do I do it?  I go into the options and the input tab and set joystick #1 to use the keyboard and the arrow keys, and it usually doesn't work.  How do I properly emulate the joystick using the keyboard?  I don't have a real joystick.

Offline
Last seen: 2 hours 48 min ago
Joined: Jun 6 2020 - 10:50
Posts: 406
I had no problem with this.

I had no problem with this. Joystick 1 is set to keyboard (cursors). I booted AppleWin with no disk, pressed Ctrl-F2 to drop to basic. Typed in the following:

 

10 ? pdl(0)

20 goto 10

 

 

Then ran it. This program constantly reads the X axis of the joystick, so you'll get a whole bunch of 127s. Press and hold left, it should drop to 0. Let go, back to 127. Press and hold right, you get 255s. 

Offline
Last seen: 3 months 3 weeks ago
Joined: Nov 12 2022 - 16:50
Posts: 197
Maybe it's the fire button

Maybe it's the fire button with which I have the problem: I keep trying different buttons on the keyboard and am not able to figure out which button is the fire button: I sometimes am able to find it but don't remember which one it is.  :(

Offline
Last seen: 2 hours 48 min ago
Joined: Jun 6 2020 - 10:50
Posts: 406
Conveniently on Apple II,

Conveniently on Apple II, they mapped the joystick buttons to closed and open Apple keys. Which on AppleWin are left and right alt keys. You can also test this in basic by printing a PEEK(49249) in place of pdl(0) in the above program. When you press the corresponding Apple key, it will jump to a value over 127. PEEK(49250) Is the other button/Apple key. 

 

 

Offline
Last seen: 3 months 3 weeks ago
Joined: Nov 12 2022 - 16:50
Posts: 197
Thank you.  :)

Thank you.  :)

Log in or register to post comments