[bsnes] RFE: not grabbing the inputs all the time
Moderator: General Mods
[bsnes] RFE: not grabbing the inputs all the time
Hi byuu,
would it be possible to modify bsnes in such a way that inputs are not grabbed when the emulator window isn't focused? Current behaviour (at least under linux) is quite annoying e.g. when somebody writes you an IM and while responding to it you do random things within the emu.
Cheers.
would it be possible to modify bsnes in such a way that inputs are not grabbed when the emulator window isn't focused? Current behaviour (at least under linux) is quite annoying e.g. when somebody writes you an IM and while responding to it you do random things within the emu.
Cheers.
Yes, I fixed this in the current WIP releases. You may want to wait for v0.026, as it addresses many issues from v0.025 ...
However, if you want to backport the fix, you can.
src/lib/libui_gtk_window.cpp:
src/ui/lui/ui_main.cpp:
By the way, I don't mind separate topics, but you may want to go ahead and post in the stickied topic in the future. Others might not like the board cluttering up.
However, if you want to backport the fix, you can.
src/lib/libui_gtk_window.cpp:
Code: Select all
bool Window::focused() {
return gtk_window_is_active(GTK_WINDOW(info.window));
}
Code: Select all
bool MainWindow::input_ready() {
//only allow input when main window is focused
return focused() == true;
}
Well, I think it is better to have one thread per issue, especially that it makes searching a bit easier. If the practice here is having one bsnes thread, I will comply.byuu wrote:By the way, I don't mind separate topics, but you may want to go ahead and post in the stickied topic in the future. Others might not like the board cluttering up.
Well again, I don't mind either way. Up to the mods, I guess. I'm happy to help out with the RPM, and appreciate you making it :)
We have a Debian / Ubuntu repository with it now too, thanks to Derrick. Available here (along with a lot of other neat programs):
http://repository.cinnamonpirate.com/
We have a Debian / Ubuntu repository with it now too, thanks to Derrick. Available here (along with a lot of other neat programs):
http://repository.cinnamonpirate.com/
yeah, it makes it harder to search, but I think just keeping it the the bsnes topic is a good idea. of course what I think ultimately doesn't matter in this instance.
[quote="byuu"]Seriously, what kind of asshole makes an old-school 2D emulator that requires a Core 2 to get full speed? [i]>:([/i] [/quote]
-
- Locksmith of Hyrule
- Posts: 3634
- Joined: Sun Aug 08, 2004 7:49 am
- Location: 255.255.255.255
- Contact:
there IS a subforums mod to phpBB anyway
we don't have it installed
we don't have it installed
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
NSRT here.