Skip to content

Instantly share code, notes, and snippets.

@NanoPi
Last active February 13, 2022 20:47
Show Gist options
  • Select an option

  • Save NanoPi/da319b0b0ccca0d1c4869c4c0aa3c5f9 to your computer and use it in GitHub Desktop.

Select an option

Save NanoPi/da319b0b0ccca0d1c4869c4c0aa3c5f9 to your computer and use it in GitHub Desktop.
Small demo to test Steam Controller config Action Set switching.
Gui, Show, w640 h360
OnMessage(0x100, "WM_KEYDOWN")
Return
;C::DllCall("ShowCursor", UInt,0)
;V::DllCall("ShowCursor", UInt,1)
GuiClose:
{
ExitApp
}
WM_KEYDOWN(VK, L, M, H) {
;ToolTip, A: %VK%
; C key
if (VK = 67){
DllCall( "ShowCursor", UInt,0 )
}
; V key
if (VK = 86){
DllCall( "ShowCursor", UInt,1 )
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment