Skip to content

Instantly share code, notes, and snippets.

@thefloodshark
Last active March 26, 2023 07:04
Show Gist options
  • Save thefloodshark/ffcac391ec8bc76551a4f4845ad96ec5 to your computer and use it in GitHub Desktop.
Save thefloodshark/ffcac391ec8bc76551a4f4845ad96ec5 to your computer and use it in GitHub Desktop.
WASD Gaming Keybindings
; WASD keybinds I made for Undertale
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#HotkeyInterval 1000 ; Prevent Script from bugging out when you press the keys too quickly in succession.
Esc::ExitApp ; Exit script with Escape key
#IfWinActive ahk_class YYGameMakerYY
w::Up
a::Left
s::Down
d::Right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment