mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Hotkeys work only when plugin's window is active (Zilmar-spec build only)
Fixed HD Texture Dump/Edit textures request #1465
This commit is contained in:
parent
e9436b7136
commit
1fe86997fb
|
@ -45,6 +45,9 @@
|
|||
|
||||
#include "Platform.h"
|
||||
#include "Keys.h"
|
||||
#ifndef MUPENPLUSAPI
|
||||
#include "windows/GLideN64_windows.h"
|
||||
#endif
|
||||
|
||||
Glide64Keys::Glide64Keys()
|
||||
{
|
||||
|
@ -117,7 +120,11 @@ bool isKeyPressed(int _key, int _mask)
|
|||
{
|
||||
static Glide64Keys g64Keys;
|
||||
#ifdef OS_WINDOWS
|
||||
#ifdef MUPENPLUSAPI
|
||||
return (GetAsyncKeyState(g64Keys[_key]) & _mask) != 0;
|
||||
#else
|
||||
return (GetAsyncKeyState(g64Keys[_key]) & _mask) != 0 && GetForegroundWindow() == hWnd;
|
||||
#endif
|
||||
#else
|
||||
// TODO
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user