Fixed mouse clamping
This commit is contained in:
parent
95075c3492
commit
5ac3ea26e8
|
@ -192,7 +192,7 @@ void EnumerateMouseCapabilities() {
|
|||
|
||||
//check for > 4 buttons - need to clamp since we're using dx 5
|
||||
if(mButtoncount > 4) {
|
||||
mButtoncount = 2;
|
||||
mButtoncount = 4;
|
||||
#ifdef _DEBUG
|
||||
printf("WARNING: Clamping to 4 mouse buttons");
|
||||
#endif
|
||||
|
@ -325,4 +325,4 @@ void CacheMouseFields() {
|
|||
fidMDX = mEnvironment->GetStaticFieldID(clsMouse, "dx", "I");
|
||||
fidMDY = mEnvironment->GetStaticFieldID(clsMouse, "dy", "I");
|
||||
fidMDWheel = mEnvironment->GetStaticFieldID(clsMouse, "dwheel", "I");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue