mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 01:03:58 +02:00
better parameter name
This commit is contained in:
parent
c3a78ed151
commit
d9dd045886
2 changed files with 5 additions and 5 deletions
|
@ -156,16 +156,16 @@ controller::Input KeyboardMouseDevice::makeInput(Qt::Key code) const {
|
||||||
return controller::Input(_deviceID, shortCode, controller::ChannelType::BUTTON);
|
return controller::Input(_deviceID, shortCode, controller::ChannelType::BUTTON);
|
||||||
}
|
}
|
||||||
|
|
||||||
controller::Input KeyboardMouseDevice::makeInput(Qt::MouseButton code, bool quickClicked) const {
|
controller::Input KeyboardMouseDevice::makeInput(Qt::MouseButton code, bool clicked) const {
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case Qt::LeftButton:
|
case Qt::LeftButton:
|
||||||
return controller::Input(_deviceID, quickClicked ? MOUSE_BUTTON_LEFT_CLICKED :
|
return controller::Input(_deviceID, clicked ? MOUSE_BUTTON_LEFT_CLICKED :
|
||||||
MOUSE_BUTTON_LEFT, controller::ChannelType::BUTTON);
|
MOUSE_BUTTON_LEFT, controller::ChannelType::BUTTON);
|
||||||
case Qt::RightButton:
|
case Qt::RightButton:
|
||||||
return controller::Input(_deviceID, quickClicked ? MOUSE_BUTTON_RIGHT_CLICKED :
|
return controller::Input(_deviceID, clicked ? MOUSE_BUTTON_RIGHT_CLICKED :
|
||||||
MOUSE_BUTTON_RIGHT, controller::ChannelType::BUTTON);
|
MOUSE_BUTTON_RIGHT, controller::ChannelType::BUTTON);
|
||||||
case Qt::MiddleButton:
|
case Qt::MiddleButton:
|
||||||
return controller::Input(_deviceID, quickClicked ? MOUSE_BUTTON_MIDDLE_CLICKED :
|
return controller::Input(_deviceID, clicked ? MOUSE_BUTTON_MIDDLE_CLICKED :
|
||||||
MOUSE_BUTTON_MIDDLE, controller::ChannelType::BUTTON);
|
MOUSE_BUTTON_MIDDLE, controller::ChannelType::BUTTON);
|
||||||
default:
|
default:
|
||||||
return controller::Input();
|
return controller::Input();
|
||||||
|
|
|
@ -96,7 +96,7 @@ public:
|
||||||
|
|
||||||
// Let's make it easy for Qt because we assume we love Qt forever
|
// Let's make it easy for Qt because we assume we love Qt forever
|
||||||
controller::Input makeInput(Qt::Key code) const;
|
controller::Input makeInput(Qt::Key code) const;
|
||||||
controller::Input makeInput(Qt::MouseButton code, bool quickClicked = false) const;
|
controller::Input makeInput(Qt::MouseButton code, bool clicked = false) const;
|
||||||
controller::Input makeInput(MouseAxisChannel axis) const;
|
controller::Input makeInput(MouseAxisChannel axis) const;
|
||||||
controller::Input makeInput(TouchAxisChannel axis) const;
|
controller::Input makeInput(TouchAxisChannel axis) const;
|
||||||
controller::Input makeInput(TouchButtonChannel button) const;
|
controller::Input makeInput(TouchButtonChannel button) const;
|
||||||
|
|
Loading…
Reference in a new issue