add member alt for arg_keyboard
This commit is contained in:
@@ -223,6 +223,7 @@ namespace detail
|
||||
{
|
||||
XKeyEvent xkey;
|
||||
nana::detail::platform_spec::instance().read_keystate(xkey);
|
||||
arg.alt = (xkey.state & Mod1Mask);
|
||||
arg.ctrl = (xkey.state & ControlMask);
|
||||
arg.shift = (xkey.state & ShiftMask);
|
||||
}
|
||||
|
||||
@@ -1622,6 +1622,7 @@ namespace detail
|
||||
|
||||
void bedrock::get_key_state(arg_keyboard& kb)
|
||||
{
|
||||
kb.alt = (0 != (::GetKeyState(VK_MENU) & 0x80));
|
||||
kb.ctrl = (0 != (::GetKeyState(VK_CONTROL) & 0x80));
|
||||
kb.shift = (0 != (::GetKeyState(VK_SHIFT) & 0x80));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user