Updated Home (markdown)

Brad Grantham 2019-10-15 10:57:17 -07:00
parent 642411519a
commit 42d8179461

30
Home.md

@ -10,24 +10,30 @@ That means that I'm using whatever GLFW thinks are axes 3 and 4 and buttons 1 an
I don't have a good configuration process for getting these numbers. The only thing I have so far is to have `interface.cpp` print out the active axes and buttons as you move your joystick and press buttons. To do this, set the environment variable `PROBE_JOYSTICKS`. When `apple2e` starts up, move your thumbstick in X (to the left and right). With my gamepad, I something like the following:
> Axis 3: -0.890196
> Axis 3: -0.027451
> Axis 3: 0.043137
```
Axis 3: -0.890196
Axis 3: -0.027455
Axis 3: 0.043137
```
That means that I use axis "3" for my Apple ][ joystick X (paddle 0). You may see a different number Move the thumbstick in Y (up and down) to get the Y axis. I see something like:
> Axis 4: -0.819608
> Axis 4: -0.811765
> Axis 4: -0.803922
```
Axis 4: -0.819608
Axis 4: -0.811765
Axis 4: -0.803922
```
So axis "4" is my joystick Y. Press your button 1 and 2 to get your button numbers. I get:
> Button 1: pressed
> Button 1: pressed
> Button 1: pressed
> Button 1: pressed
> Button 3: pressed
> Button 3: pressed
```
Button 1: pressed
Button 1: pressed
Button 1: pressed
Button 1: pressed
Button 3: pressed
Button 3: pressed
```
So in my `joystick.ini`, I put `3 4 1 3`. Place your X and Y axis and button 1 and 2 numbers in your `joystick.ini`.