Mouse and keys not returning value

BlitzMax Forums/MaxGUI Module/Mouse and keys not returning value

duquette(Posted 2008) [#1]
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


SebHoll(Posted 2008) [#2]
Are you calling EnablePolledInput() at the start of your code?


duquette(Posted 2008) [#3]
Thanks all is working now.


duquette(Posted 2008) [#4]
this works fine for mouse input but now keyboard input sucks.


rs22(Posted 2008) [#5]
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()