aap / pdp6

PDP-6 Emulator
MIT License
59 stars 9 forks source link

Add joystick support #11

Closed larsbrinkhoff closed 4 years ago

larsbrinkhoff commented 5 years ago

Mostly for Spacewar.

larsbrinkhoff commented 5 years ago

This uses device 420, as expected by SPCWAR 164.

Maybe it's really the color scope device, and just reused as a convenient set of inputs. See https://github.com/PDP-10/its/issues/1534 and https://github.com/rcornwell/sims/issues/94 for some more information.

So if you want to name it "clr" or something instead of "joy", that's fine.

larsbrinkhoff commented 5 years ago

I'm going to have to add the PDP-6 device 724 to which some other kind of Spacewar consoles were attached. There were two of them, each getting one halfword from DATAI.

@rcornwell, that goes for you too.

Bit Label? Game function
17/35 Time K
16/34 Time 0
15/33 Pedal Hyperspace
14/32 Button Torpedoes
13/31 Port/rotate counter clockwise
12/30 Starboard/rotate clockwise
11/29 Slower thrust
10/28 Faster thrust
9/27 Xmit data
5/23 General cancel Self destruct
4/22 Beacon beam
2/20 Swap button/pedal
0/18 Swap rotations
larsbrinkhoff commented 4 years ago

I need to make an update. The 420 style controllers doesn't have a hyperspace button yet.

larsbrinkhoff commented 4 years ago

Updated, button added (doesn't work), rebased.