GLBasic forum

Main forum => Bug Reports => Topic started by: MrTAToad on 2009-Aug-06

Title: MOUSESTATE wont accept integers for the two button parameters
Post by: MrTAToad on 2009-Aug-06
You get :

C:\DOCUME~1\Nicholas\LOCALS~1\Temp\glbasic\gpc_temp1f.cpp:347: error: no matching function for call to `MOUSESTATE(double&, double&, DGNat&, DGNat&)'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:1055: note: candidates are: void __GLBASIC__::MOUSESTATE(DGInt&, DGInt&, DGInt&, DGInt&)
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:1056: note:                 void __GLBASIC__::MOUSESTATE(DGNat&, DGNat&, DGNat&, DGNat&)
Title: Re: MOUSESTATE wont accept integers for the two button parameters
Post by: Hemlos on 2009-Aug-06
?

Show me your code please.
Title: Re: MOUSESTATE wont accept integers for the two button parameters
Post by: MrTAToad on 2009-Aug-06
MOUSESTATE x,y,b1%,b2% causes the above problem
Title: Re: MOUSESTATE wont accept integers for the two button parameters
Post by: Hemlos on 2009-Aug-06
% is used for declaring a variable

GLOBAL b1%,b2%


MOUSESTATE x,y,b1,b2

edit:

Regardless, youre correct....an error occurs either way.
Title: Re: MOUSESTATE wont accept integers for the two button parameters
Post by: MrTAToad on 2009-Aug-06
I always use the variable type where ever a variable is used - old habit :)
Title: Re: MOUSESTATE wont accept integers for the two button parameters
Post by: Kitty Hello on 2009-Aug-07
Yes, please go either naturals or floating point.