Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XTXTMTXTX committed Aug 12, 2020
1 parent 67ba00a commit 5cb872d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Compile.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
g++ main.cpp -o Key_Listener.exe -m32 -Wall -O2 -L fmod/lib/ -static-libgcc -lfmod -lfmodL
g++ main.cpp -o Key_Listener.exe -m32 -Wall -s -std=c++1y -O2 -L fmod/lib/ -static-libgcc -lfmod -lfmodL
2 changes: 2 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ inline void Sound_Key(const int &key) {
if(!UseKeys[key])return;
if(Key_Enabled[key])FMOD_System_PlaySound(fmodSystem, KeySound[key], 0, false, 0);else
if(Key_Enabled[0])FMOD_System_PlaySound(fmodSystem, KeySound[0], 0, false, 0);
FMOD_System_Update(fmodSystem);
}
inline void Sound_Mouse(const int &key) {
if(Mouse_Enabled[key])FMOD_System_PlaySound(fmodSystem, MouseSound[key], 0, false, 0);else
if(Mouse_Enabled[0])FMOD_System_PlaySound(fmodSystem, MouseSound[0], 0, false, 0);
FMOD_System_Update(fmodSystem);
}

BOOL CALLBACK con_handler(DWORD) {
Expand Down

0 comments on commit 5cb872d

Please sign in to comment.