Browse Source

Increased button state array size.

woollybah 9 years ago
parent
commit
bfb3eacde2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      win32maxguiex.mod/win32maxguiex.bmx

+ 2 - 2
win32maxguiex.mod/win32maxguiex.bmx

@@ -440,7 +440,7 @@ Type TWindowsGUIDriver Extends TMaxGUIDriver
 			If ev
 				'Hot-key events shouldn't be emitted if the source gadget is disabled
 				If Not(TGadget(ev.source) And GadgetDisabled(TGadget(ev.source))) Then
-					If Not (UInt(lparam) & $80000000) Then
+					If Not (UInt(lparam) & $80000000:UInt) Then
 						EmitEvent ev
 						If ev.mods Then Return 1	'Key press events never reach active panels etc. if we return 1
 					EndIf
@@ -468,7 +468,7 @@ Type TWindowsGUIDriver Extends TMaxGUIDriver
 		Return HotKeyEvent( key,mods,GetForegroundWindow() )
 	EndFunction
 
-	Global intButtonStates%[3]
+	Global intButtonStates%[4]
 	
 	Function MouseProc:Byte Ptr( code,wparam:Byte Ptr,lparam:Byte Ptr ) "win32" nodebug