You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2024-11-15-gspro-button-box.md
+7-14Lines changed: 7 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
-
title: GSPro DIY Button Box
2
+
title: DIY Golf Simulator Button Box
3
3
layout: post
4
4
# parent: Articles
5
5
last_modified_date: 2024-11-15
6
6
thumbnail: /assets/buttonbox/buttonbox_thumb.jpg
7
7
---
8
8
9
-
After seeing a few other cool DIY boxes online, I decided to try my hand at building my own button box for GSPro. I had some spare arcade parts leftover from a previous project. So after a couple quick cuts and drilling a few holes, I had a prototype button box of my own.
9
+
After seeing a few other cool DIY boxes online, I decided to try my hand at building my own floor button box for my golf simulator. I had some spare arcade parts leftover from a previous project. So after a couple quick cuts and drilling a few holes, I had a prototype button box of my own.
10
10
11
-
The box connects to the PC via an arcade USB encoder (I'd love to upgrade to a wireless version). It appears on the PC as a joystick device, not a normal keyboard. So I needed to write a few scripts and tools for connecting the buttons with actions on GSPro.
11
+
The box connects to the PC via an arcade USB encoder (I'd love to upgrade to a wireless version soon). It appears on the PC as a joystick device, not a normal keyboard. So I needed to write a few scripts and tools for connecting the buttons with actions on the sim. (That's actually when OpenGolfSim was born!)
12
12
13
13
<imgsrc="/assets/button_box_01.jpg" />
14
14
@@ -19,9 +19,9 @@ The box connects to the PC via an arcade USB encoder (I'd love to upgrade to a w
19
19
20
20
## Building the Box
21
21
22
-
Building the box is fairly easy, you could use anything from a cardboard box to a masterpiece crafted out of burled walnut. Mine fell somewhere in the middle. I used some spare furring strips and chip-board I had laying around
22
+
Building the box is fairly easy, you could use anything from some cardboard to something crafted out of burled walnut. Mine fell somewhere in the middle. I used some spare furring strips and chip-board I had laying around.
@@ -32,7 +32,7 @@ Building the box is fairly easy, you could use anything from a cardboard box to
32
32
33
33
### Steps
34
34
35
-
1. You'll first need to determine which buttons you want to know how many buttons to place on the board. I decided on 4 arrow buttons to move the aim point, and 6 other function buttons.
35
+
1. You'll first need to determine which actions you'll want easy access to, so you know how many holes to place on the board. I decided on 4 arrow buttons to move the aim point, and 6 other function buttons that I would program later.
36
36
37
37
- Left/Right/Down/Up
38
38
- Mulligan (most used button by far)
@@ -54,12 +54,5 @@ Building the box is fairly easy, you could use anything from a cardboard box to
54
54
55
55
1. Attach the other buttons to the usb encoder board slots K1-K12. These are for any type of push button.
56
56
57
-
1. Plug the usb encoder into your computer and launch our [GSPro Button Box](https://github.com/dudewheresmycode/gspro-button-box) app to setup your box.
57
+
1. Plug the usb encoder into your computer and launch our [OpenGolfSim Desktop](/desktop/) app to setup your box.
58
58
59
-
## Handling Drops
60
-
61
-
GSPro doesn't seem to have a key commands for drop or re-hit (that I could find), or a keyboard way to move between the drop options or menus. So, I had to get creative if I wanted to have that option available on a button.
62
-
63
-
I decided to try and take a screenshot, and then use OCR (Optical Character Recognition) library to find the position of any text displayed on screen. This way we can find the drop / re-hit buttons when they're presented.
64
-
65
-
The only downside is that the process takes about a second, which isn't ideal when a user presses a button. You'd want it to be instant. So I added some on screen text that says "Attempting Drop" instantly when you press the button. This way you know it received the button press and is working on finding the right option.
0 commit comments