Skip to content

Commit e2b48bc

Browse files
committed
Bug Fixes & Performance Improvements
0 parents  commit e2b48bc

File tree

6 files changed

+139
-0
lines changed

6 files changed

+139
-0
lines changed

.github/SimSimcadeArcade.jpg

47.1 KB
Loading

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.vscode

KBDRacer.ahk

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
I_Icon = KBDRacer.ico
2+
IfExist, %I_Icon%
3+
Menu, Tray, Icon, %I_Icon%
4+
;return
5+
6+
;; ? FROM: https://www.autohotkey.com/boards/viewtopic.php?p=391598&sid=b225a17ae64d8e7fa5ae600b77b5b6f4#p391598
7+
8+
#InstallKeybdhook
9+
#UseHook On
10+
#MaxHotkeysPerInterval 200 ; ? FROM: https://www.autohotkey.com/board/topic/62512-permanently-turn-off-that-annoying-hotkey-limit/
11+
12+
;; * Pressing both r & Up buttons cancels each other.
13+
;; ? Throttle/Gas: r (Up cancels it)
14+
;; ? Hand brake: Space
15+
;; ? Brake/Reverse: Down
16+
17+
~r::
18+
if(GetKeyState("Up", "p"))
19+
SendInput {r up}{Up up}
20+
Return
21+
22+
~Up::
23+
if(GetKeyState("r", "p"))
24+
SendInput {r up}{Up up}
25+
Return
26+
27+
~r up::
28+
if(GetKeyState("Up", "p"))
29+
SendInput {Up down}
30+
Return
31+
32+
~Up up::
33+
if(GetKeyState("r", "p"))
34+
SendInput {r down}
35+
Return
36+
37+
;; * Pressing both e & Left/Right buttons or both f & Left/Right buttons cancel each other.
38+
;; ? Steer left: e (Left or Right cancels it)
39+
;; ? Steer right: f (Left or Right cancels it)
40+
41+
~e::
42+
if(GetKeyState("Left", "p"))
43+
SendInput {e up}{Left up}
44+
if(GetKeyState("Right", "p"))
45+
SendInput {e up}{Right up}
46+
Return
47+
~f::
48+
if(GetKeyState("Left", "p"))
49+
SendInput {f up}{Left up}
50+
if(GetKeyState("Right", "p"))
51+
SendInput {f up}{Right up}
52+
Return
53+
54+
~Left::
55+
if(GetKeyState("e", "p"))
56+
SendInput {e up}{Left up}
57+
if(GetKeyState("f", "p"))
58+
SendInput {f up}{Left up}
59+
Return
60+
~Right::
61+
if(GetKeyState("e", "p"))
62+
SendInput {e up}{Right up}
63+
if(GetKeyState("f", "p"))
64+
SendInput {f up}{Right up}
65+
Return
66+
67+
~e up::
68+
if(GetKeyState("Left", "p"))
69+
SendInput {Left down}
70+
if(GetKeyState("Right", "p"))
71+
SendInput {Right down}
72+
Return
73+
~f up::
74+
if(GetKeyState("Left", "p"))
75+
SendInput {Left down}
76+
if(GetKeyState("Right", "p"))
77+
SendInput {Right down}
78+
Return
79+
80+
~Left up::
81+
if(GetKeyState("e", "p"))
82+
SendInput {e down}
83+
if(GetKeyState("f", "p"))
84+
SendInput {f down}
85+
Return
86+
~Right up::
87+
if(GetKeyState("e", "p"))
88+
SendInput {e down}
89+
if(GetKeyState("f", "p"))
90+
SendInput {f down}
91+
Return
92+
93+
;; ! BSDK

KBDRacer.ico

117 KB
Binary file not shown.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 ccelik97
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- markdownlint-disable MD033 -->
2+
<!-- MD033/no-inline-html -->
3+
4+
# KBDRacer
5+
6+
> Make it simple, but not stupid. (MISS̅) -Me ([and also Einstein, kinda](https://www.nature.com/articles/d41586-018-05004-4#:~:text=%E2%80%9CEverything%20should%20be,datum%20of%20experience.%E2%80%9D)).
7+
> [![Sim VS Simcade VS Arcade](/.github/SimSimcadeArcade.jpg)](https://www.youtube.com/watch?v=wOsncAPkka0)
8+
9+
By default it assumes a fighter-like button setup, with automatic shifting:
10+
11+
- <kbd>R</kbd>: Accelerate _(step on the gas pedal)_
12+
- <kbd>Up</kbd>: Don't accelerate _(lift off your foot from the gas pedal)_
13+
- <kbd>Down</kbd>: Brake/Reverse
14+
- <kbd>E</kbd>/<kbd>F</kbd>: Steer left/right
15+
- <kbd>Left</kbd>/<kbd>Right</kbd>: Don't steer _(pressing either of them unpresses the steering buttons, if pressed; for simplicty)_
16+
- <kbd>Space</kbd>: Handbrake
17+
18+
Note: Run it as Administrator if your game is also running as Administrator.
19+
20+
## Download: [Here](https://github.com/ccelik97/KBDRacer/releases/latest)
21+
22+
### Credits
23+
24+
- The image: [Average Game Reviews](https://www.youtube.com/watch?v=wOsncAPkka0)

0 commit comments

Comments
 (0)