From 76d5f93d03df974707661044b3898e1575a4dbb2 Mon Sep 17 00:00:00 2001 From: Lilly Date: Fri, 12 Nov 2021 18:56:54 +0100 Subject: [PATCH] updated and added readme update --- README.md | 15 ++++++++++++--- osu-keyboard-sounds.cpp | 13 +++---------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b9a9c76..72f0641 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,24 @@ - This cpp console application: plays keyboard sound effects, when you press keyboard 😳 - [Original](https://github.com/KerimPotter/osu-keyboard-sounds-cpp) +### NEED HELP! + +- Keybinds like CTRL ALT P. Havent been able to get them to work +- Custom Keybinds +- Tray Icon to turn on and off (maybe) +- Disable the sound when holding a button. + +If you wanna help me here, i would apperciate it, because im no user of C++ Actually. + ### How to use? - Open the App -- If a Window Pops up, press insert to Hide in Background +- If a Window Pops up, press F8 to Hide in Background ### How to mute it when you play a Game? -- Press Home Button to turn off all Sound -- Press Home to turn on again +- Press F7 Button to turn off all Sound +- Press F7 to turn on again ### How to close? diff --git a/osu-keyboard-sounds.cpp b/osu-keyboard-sounds.cpp index 64f30b0..bc0b1c2 100644 --- a/osu-keyboard-sounds.cpp +++ b/osu-keyboard-sounds.cpp @@ -28,25 +28,18 @@ LRESULT CALLBACK MyHook(int nCode, WPARAM wParam, LPARAM lParam) { PKBDLLHOOKSTRUCT pKey = (PKBDLLHOOKSTRUCT)lParam; switch (pKey->vkCode) { - case VK_HOME: + case VK_F7: on = !on; if (!on) { return yeet = 0; - + } else { return yeet = 1; } - case VK_SHIFT: - case VK_LSHIFT: - case VK_RSHIFT: - case VK_CONTROL: - case VK_MENU: - return 0; - break; case VK_CAPITAL: if (yeet == 1) { @@ -72,7 +65,7 @@ LRESULT CALLBACK MyHook(int nCode, WPARAM wParam, LPARAM lParam) { BASS_ChannelPlay(keyMovement, TRUE); } break; - case VK_INSERT: + case VK_F8: show = !show; if (!show) {