Mouse and keys not returning value
BlitzMax Forums/MaxGUI Module/Mouse and keys not returning value| 
 | ||
| I don't think some of blitzmax variables are returning a value when used with MaxGui, mousex() always returns 0 and the keyboard movement command that worked before no longer works with MaxGui installed. Vista 64 bit Intel quad 9300 2.5ghz,8 gb ram,BFG 8800 gtx | 
| 
 | ||
| Are you calling EnablePolledInput() at the start of your code? | 
| 
 | ||
| Thanks all is working now. | 
| 
 | ||
| this works fine for mouse input but now keyboard input sucks. | 
| 
 | ||
| I believe events are the best way to go when dealing with input in MaxGUI: 
WaitEvent()
Select EventID()
  Case EVENT_KEYUP
		
    Select EventData()
			
      Case KEY_LSHIFT
				
        ' Do whatever
    EndSelect
  Case EVENT_MOUSEMOVE
    MX = EventX()
    MY = EventY()
EndSelect()
 |