make beep use a game sound
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
#include "keymods.hpp"
|
||||
|
||||
void play_sound(snd_num_t which, sf::Time delay = sf::Time());
|
||||
|
||||
// The default scale should be the largest that the user's screen can fit all three
|
||||
// BoE application windows (because they should probably default to match each other).
|
||||
double fallback_scale() {
|
||||
@@ -48,4 +50,8 @@ bool pollEvent(sf::Window& win, sf::Event& event){
|
||||
|
||||
bool pollEvent(sf::Window* win, sf::Event& event){
|
||||
return pollEvent(*win, event);
|
||||
}
|
||||
|
||||
void beep() {
|
||||
play_sound(1);
|
||||
}
|
@@ -224,9 +224,6 @@ std::unique_ptr<sf::Image> get_clipboard_img() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void beep() {
|
||||
}
|
||||
|
||||
void launchURL(std::string url) {
|
||||
system((std::string { "xdg-open " } + url).c_str());
|
||||
}
|
||||
|
@@ -169,10 +169,6 @@ std::unique_ptr<sf::Image> get_clipboard_img() {
|
||||
return ret;
|
||||
}
|
||||
|
||||
void beep() {
|
||||
NSBeep();
|
||||
}
|
||||
|
||||
void launchURL(std::string url) {
|
||||
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:[NSString stringWithUTF8String:url.c_str()]]];
|
||||
}
|
||||
|
@@ -418,10 +418,6 @@ CLEANUP:
|
||||
return img;
|
||||
}
|
||||
|
||||
void beep() {
|
||||
MessageBeep(-1);
|
||||
}
|
||||
|
||||
void launchURL(std::string url) {
|
||||
ShellExecuteA(NULL, "open", url.c_str(), NULL, NULL, SW_SHOWNORMAL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user