Skip to content

Commit 864139f

Browse files
committed
UPBGE: Fix mouse sensor.
Previously the conversion of the sensors events mode to the input enum was using a conversion table, but this table was lacking an item which shifted all the other items. The shift is removed by adding the missing elements.
1 parent f780c89 commit 864139f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/gameengine/GameLogic/SCA_MouseSensor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ bool SCA_MouseSensor::Evaluate()
110110
case KX_MOUSESENSORMODE_WHEELDOWN:
111111
{
112112
static const SCA_IInputDevice::SCA_EnumInputs convertTable[KX_MOUSESENSORMODE_MAX] = {
113+
SCA_IInputDevice::NOKEY, // KX_MOUSESENSORMODE_NODEF
113114
SCA_IInputDevice::LEFTMOUSE, // KX_MOUSESENSORMODE_LEFTBUTTON
114115
SCA_IInputDevice::MIDDLEMOUSE, // KX_MOUSESENSORMODE_MIDDLEBUTTON
115116
SCA_IInputDevice::RIGHTMOUSE, // KX_MOUSESENSORMODE_RIGHTBUTTON

0 commit comments

Comments
 (0)