Skip to content

Commit

Permalink
updated and added readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
HerXayah committed Nov 12, 2021
1 parent ba997bf commit 76d5f93
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
13 changes: 3 additions & 10 deletions osu-keyboard-sounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand All @@ -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)
{
Expand Down

0 comments on commit 76d5f93

Please sign in to comment.