Skip to content

Commit

Permalink
Apparently the game controller icon has moved inside the Windows DLL,…
Browse files Browse the repository at this point in the history
… so I added a check for the Windows Version, and if it is less than the value of my Laptop's it will use icon number 26, otherwise it will use icon number 27. (Note my desktop must have an older version of Windows as the icon never changed tehre)
  • Loading branch information
CemuUser8 committed Jun 1, 2017
1 parent 3d993ee commit 1da4304
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions mouse2joystick_Custom_CEMU.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,28 @@
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Include CvJI/CvJoyInterface.ahk ; Credit to evilC.
; Settings
#MaxHotkeysPerInterval 210
#HotkeyInterval 1000
#InstallMouseHook
#SingleInstance Force
; Settings
CoordMode,Mouse,Screen
SetMouseDelay,-1
SetBatchLines,-1
; On exit
OnExit("exitFunc")
toggle:=1 ; On/off parameter for the hotkey. Toggle 0 means controller is on. The placement of this variable is disturbing.
; Icon
Menu,Tray,Tip, mouse2joystick Custom for CEMU
Menu,Tray,Tip, mouse2joystick Customized for CEMU
Menu,Tray,NoStandard

IF (A_OSVersion < "10.0.15063") ; It appears that the Icon has changed number on the newest versions of Windows.
useIcon := 26
Else
useIcon := 27

try
Menu,Tray,Icon,ddores.dll,26
Menu,Tray,Icon,ddores.dll, %useIcon%
;Menu,Settings,openSettings
Menu,Tray,Add,Settings,openSettings
Menu,Tray,Add,
Expand Down Expand Up @@ -184,7 +190,7 @@ Return
; End autoexec.

selectGameMenu:
TrayTip, Game reset to cemu.exe, If you want something different manually edit the 'settinigs.ini' file
TrayTip, % "Game reset to cemu.exe", % "If you want something different manually edit the settings, or 'settings.ini' file directly"
gameExe := "cemu.exe"
IniWrite, %gameExe%, settings.ini, General, gameExe
return
Expand All @@ -198,7 +204,7 @@ aboutMenu:
return

helpMenu:
Msgbox,% 4+ 32 , Open help in browser?, Visit Reddit post on /r/cemu for help?`n`nWill Open link in default browser.
Msgbox,% 4+ 32 , Open help in browser?, Visit Reddit post on /r/cemu for help?`n`nIt is helpful to know the version (%version%)`nand if possible a pastebin of your 'settings.ini' file will help me troubleshoot.`n`nWill Open link in default browser.
IfMsgBox Yes
Run, https://www.reddit.com/r/cemu/comments/5zn0xa/autohotkey_script_to_use_mouse_for_camera/
return
Expand Down

0 comments on commit 1da4304

Please sign in to comment.