Joysticks: Difference between revisions

From NerdConsole
Jump to navigationJump to search
(Created page with "As with nearly all game systems, joysticks are how users get input into NerdConsole. NerdConsole uses standard SNES controllers because they are easy to find and in my opinion, excellent. They have enough buttons to allow for flexibility when defining how your game uses them while not so many as to be complicated. NerdConsole has joystick ports built into the front of the system for players 1 and 2. These are always available. There is a 6-pin connector that through...")
 
No edit summary
Line 1: Line 1:
As with nearly all game systems, joysticks are how users get input into NerdConsole.  NerdConsole uses standard SNES controllers because they are easy to find and in my opinion, excellent.  They have enough buttons to allow for flexibility when defining how your game uses them while not so many as to be complicated.
As with nearly all game systems, joysticks are how users get input into NerdConsole.  NerdConsole uses standard SNES controllers because they are easy to find and in my opinion, excellent.  They have enough buttons to allow for flexibility when defining how your game uses them while not so many as to be complicated.
NerdConsole has joystick ports built into the front of the system for players 1 and 2.  These are always available.  There is a 6-pin connector that through a "4 Player" breakout board provides joystick ports for players 3 and 4.  There is also another 4-pin connector, that when used in conjunction with the 6-pin connector and a "8 Player" breakout board provides joystick ports for players 3, 4, 5, 6, 7, and 8.


Regardless of which port is being used, the joysticks all work in the same way.  A pattern of latching the button state and then reading the data 1-bit at a time.  For additional information check out [[Register - Input]].
Regardless of which port is being used, the joysticks all work in the same way.  A pattern of latching the button state and then reading the data 1-bit at a time.  For additional information check out [[Register - Input]].

Revision as of 17:43, 17 January 2024

As with nearly all game systems, joysticks are how users get input into NerdConsole. NerdConsole uses standard SNES controllers because they are easy to find and in my opinion, excellent. They have enough buttons to allow for flexibility when defining how your game uses them while not so many as to be complicated.

Regardless of which port is being used, the joysticks all work in the same way. A pattern of latching the button state and then reading the data 1-bit at a time. For additional information check out Register - Input.

When reading controllers, the buttons are always read in a specific order.

SNES Button Order

Order Button
1 B
2 Y
3 Select
4 Start
5 Up
6 Down
7 Left
8 Right
9 A
10 X
11 L
12 R