Skip to content

Commit

Permalink
Bug Fixes & Performance Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ccelik97 committed Dec 26, 2022
0 parents commit 3c37432
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 0 deletions.
Binary file added .github/HitBox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.vscode
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 ccelik97

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# SOCD Cleaner

A software based SOCD Cleaner written in [AutoHotKey](https://www.autohotkey.com), for Windows.

From [Hit Box Arcade](https://www.hitboxarcade.com/blogs/support/what-is-socd):

> SOCD means "Simultaneous Opposing Cardinal Directions." It is the physical actuation of cardinal directions that are separate and opposite to each other - ie, pressing Left and Right at the same time. This phenomenon is best known on all-button controllers, such as the Hit Box and Smash Box, but current controllers like the Dual-Shock 4 can do something similar with its cross-directional (Analog Stick and Dpad) inputs.
> ![Hit Box button layout.](/.github/HitBox.png)
By default it assumes the following button setup:

* Left: <kbd>E</kbd>
* Crouch: <kbd>R</kbd>
* Right: <kbd>F</kbd>
* Space: <kbd>Space</kbd>

Note: Run it as Administrator if your game is also running as Administrator.

## Download: [Here](https://github.com/ccelik97/SOCD-Cleaner/releases/latest)
61 changes: 61 additions & 0 deletions SOCD Cleaner.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
I_Icon = SOCD_Cleaner.ico
IfExist, %I_Icon%
Menu, Tray, Icon, %I_Icon%
;return

;; ? FROM: https://www.autohotkey.com/boards/viewtopic.php?p=391598&sid=b225a17ae64d8e7fa5ae600b77b5b6f4#p391598

#InstallKeybdhook
#UseHook On
#MaxHotkeysPerInterval 200 ; ? FROM: https://www.autohotkey.com/board/topic/62512-permanently-turn-off-that-annoying-hotkey-limit/

;; * Pressing both Left & Right buttons cancels each other.
;; ? Left: e
;; ? Right: f

~e::
if(GetKeyState("f", "p"))
SendInput {e up}{f up}
Return

~f::
if(GetKeyState("e", "p"))
SendInput {e up}{f up}
Return

~e up::
if(GetKeyState("f", "p"))
SendInput {f down}
Return

~f up::
if(GetKeyState("e", "p"))
SendInput {e down}
Return

;; * Pressing both Jump & Crouch buttons inputs only Jump,
;; * releasing Jump inputs Crouch.
;; ? Jump: space
;; ? Crouch: r

~space::
if(GetKeyState("r", "p"))
SendInput {space down}{R up}
Return

~space up::
if(GetKeyState("r", "p"))
SendInput {r down}
Return

~r::
if(GetKeyState("space", "p"))
SendInput {r up}{space down}
Return

~r up::
if(GetKeyState("space", "p"))
SendInput {space down}
Return

;; ! BSDK
Binary file added SOCD_Cleaner.ico
Binary file not shown.

0 comments on commit 3c37432

Please sign in to comment.