HDB: Update Mouse data for buttons

This commit is contained in:
Nipun Garg 2019-06-29 00:42:24 +05:30 committed by Eugene Sandulenko
parent 6d75390e84
commit 5e0e12531b
2 changed files with 4 additions and 4 deletions

View File

@ -32,6 +32,8 @@ bool Input::init() {
_mouseX = kScreenWidth / 2;
_mouseY = kScreenHeight / 2;
_mouseLButton = _mouseMButton = _mouseRButton = 0;
return true;
}

View File

@ -36,10 +36,7 @@ enum Button {
kButtonB = 2 << 5,
kButtonC = 2 << 6,
kButtonD = 2 << 7,
kButtonMouseL = 2 << 8,
kButtonMouseM = 2 << 9,
kButtonMouseR = 2 << 10,
kButtonExit = 2 << 11
kButtonExit = 2 << 8
};
class Input {
@ -68,6 +65,7 @@ private:
bool _stylusDown;
int _stylusDownX, _stylusDownY;
int _mouseX, _mouseY;
int _mouseLButton, _mouseMButton, _mouseRButton;
// Definable Keys
int _keyUp, _keyDown, _keyLeft, _keyRight;