This source file includes following definitions.
- Create
- IsMouseButtonDown
#include "ui/aura/input_state_lookup_win.h"
#include <windows.h>
#include <winuser.h>
namespace aura {
scoped_ptr<InputStateLookup> InputStateLookup::Create() {
return scoped_ptr<InputStateLookup>(new InputStateLookupWin);
}
InputStateLookupWin::InputStateLookupWin() {
}
InputStateLookupWin::~InputStateLookupWin() {
}
bool InputStateLookupWin::IsMouseButtonDown() const {
return (GetKeyState(VK_LBUTTON) & 0x80) ||
(GetKeyState(VK_RBUTTON) & 0x80) ||
(GetKeyState(VK_MBUTTON) & 0x80) ||
(GetKeyState(VK_XBUTTON1) & 0x80) ||
(GetKeyState(VK_XBUTTON2) & 0x80);
}
}