mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-23 08:59:40 +00:00
903d1e4012
* GB: integrated SameBoy v0.12.1 by Lior Halphon * SFC: added HG51B169 (Cx4) math tables into bsnes binary
23 lines
484 B
C++
Executable File
23 lines
484 B
C++
Executable File
#if defined(Hiro_Mouse)
|
|
|
|
namespace hiro {
|
|
|
|
auto pMouse::position() -> Position {
|
|
POINT point{};
|
|
GetCursorPos(&point);
|
|
return {point.x, point.y};
|
|
}
|
|
|
|
auto pMouse::pressed(Mouse::Button button) -> bool {
|
|
switch(button) {
|
|
case Mouse::Button::Left: return GetAsyncKeyState(VK_LBUTTON) & 0x8000;
|
|
case Mouse::Button::Middle: return GetAsyncKeyState(VK_MBUTTON) & 0x8000;
|
|
case Mouse::Button::Right: return GetAsyncKeyState(VK_RBUTTON) & 0x8000;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|