mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
better key mapping
This commit is contained in:
parent
a08346719c
commit
0edcdde746
1 changed files with 2 additions and 2 deletions
|
@ -688,12 +688,12 @@ function makeGripHandler(hand, animate) {
|
|||
}
|
||||
|
||||
function keyPressEvent(event) {
|
||||
if ((event.text === "x") && !event.isAutoRepeat) {
|
||||
if ((event.text === "x") && !event.isAutoRepeat && !event.isShifted && !event.isMeta && !event.isControl && !event.isAlt) {
|
||||
updateTriggers(1.0, true, Controller.Standard.RightHand);
|
||||
}
|
||||
}
|
||||
function keyReleaseEvent(event) {
|
||||
if ((event.text === "x") && !event.isAutoRepeat) {
|
||||
if ((event.text === "x") && !event.isAutoRepeat && !event.isShifted && !event.isMeta && !event.isControl && !event.isAlt) {
|
||||
updateTriggers(0.0, true, Controller.Standard.RightHand);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue