mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-19 14:31:28 +02:00
Update to v095r06 release.
byuu says: Changelog: - fixed I/O register reads; perfect score on endrift's I/O tests now - fixed mouse capture clipping on Windows [Cydrak] - several hours of code maintenance work done on the SFC core All higan/sfc files should now use the auto fn() -> ret; syntax. Haven't converted all unsigned->uint yet. Also, probably won't do sfc/alt as that's mostly just speed hack stuff. Errata: - forgot auto& instead of just auto on SuperFamicom::Video::draw_cursor, which makes Super Scope / Justifier crash. Will be fixed in the next WIP.
This commit is contained in:
@@ -18,15 +18,15 @@ struct InputMouseRawInput {
|
||||
} ms;
|
||||
|
||||
auto acquire() -> bool {
|
||||
if(mouseAcquired == false) {
|
||||
if(!mouseAcquired) {
|
||||
mouseAcquired = true;
|
||||
ShowCursor(false);
|
||||
}
|
||||
return true;
|
||||
return acquired();
|
||||
}
|
||||
|
||||
auto release() -> bool {
|
||||
if(mouseAcquired == true) {
|
||||
if(mouseAcquired) {
|
||||
mouseAcquired = false;
|
||||
ReleaseCapture();
|
||||
ClipCursor(nullptr);
|
||||
@@ -36,7 +36,7 @@ struct InputMouseRawInput {
|
||||
}
|
||||
|
||||
auto acquired() -> bool {
|
||||
if(mouseAcquired == true) {
|
||||
if(mouseAcquired) {
|
||||
SetFocus((HWND)handle);
|
||||
SetCapture((HWND)handle);
|
||||
RECT rc;
|
||||
|
Reference in New Issue
Block a user