GETMOUSE and integer
-
- Posts: 606
- Joined: Nov 28, 2012 1:27
- Location: CA, USA moving to WA, USA
- Contact:
GETMOUSE and integer
Another of the graphics related keywords that use an integer, when a long would make coding so much more convenient all around and be more logical.
Re: GETMOUSE and integer
Leftover from the QB era?
Re: GETMOUSE and integer
Jeff,
GETMOUSE documentation page:
Can you provide all the overload declarations so that I can update the documentation ?
GETMOUSE documentation page:
I see that GETMOUSE is already also declared with LONG parameters (but without optional parameters):Syntax:
- declare function Getmouse ( byref x as integer, byref y as integer, byref wheel as integer = 0, byref buttons as integer = 0, byref clip as integer = 0 ) as long
Code: Select all
#print typeof(@getmouse)
Code: Select all
FUNCTION(BYREF AS LONG, BYREF AS LONG, BYREF AS LONG, BYREF AS LONG, BYREF AS LONG) AS LONG
-
- Posts: 606
- Joined: Nov 28, 2012 1:27
- Location: CA, USA moving to WA, USA
- Contact:
Re: GETMOUSE and integer
update the wiki?Syntax:
declare function Getmouse ( byref x as integer, byref y as integer, byref wheel as integer = 0, byref buttons as integer = 0, byref clip as integer = 0 ) as long
Re: GETMOUSE and integer
The SETMOUSE keyword has been updated as follows (integer => long, everywhere):speedfixer wrote:update the wiki?Syntax:
declare function Getmouse ( byref x as integer, byref y as integer, byref wheel as integer = 0, byref buttons as integer = 0, byref clip as integer = 0 ) as long
Edited on 2015-04-01 13:07:09 by DkLwikki [integer => long]
By cons, for GETMOUSE, only the return datatype has been changed:
Edited on 2015-04-01 11:56:06 by DkLwikki [integer => long (result only)]
Strange ?
Re: GETMOUSE and integer
fxm wrote:Jeff,
Can you provide all the overload declarations so that I can update the documentation ?
Code: Select all
declare function setmouse _
( _
byval x as const long = &h80000000, _
byval y as const long = &h80000000, _
byval cursor as const long = -1, _
byval clip as const long = -1 _
) as long
declare function getmouse overload _
( _
byref x as long, _
byref y as long, _
byref z as long = 0, _
byref buttons as long = 0, _
byref clip as long = 0 _
) as long _
declare function getmouse overload _
( _
byref x as longint, _
byref y as longint, _
byref z as longint = 0, _
byref buttons as longint = 0, _
byref clip as longint = 0 _
) as long