GETMOUSE and integer

Forum for discussion about the documentation project.
Post Reply
speedfixer
Posts: 606
Joined: Nov 28, 2012 1:27
Location: CA, USA moving to WA, USA
Contact:

GETMOUSE and integer

Post by speedfixer »

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.
miilvyxg
Posts: 193
Joined: Dec 07, 2021 6:51

Re: GETMOUSE and integer

Post by miilvyxg »

Leftover from the QB era?
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: GETMOUSE and integer

Post by fxm »

Jeff,

GETMOUSE documentation page:
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
I see that GETMOUSE is already also declared with LONG parameters (but without optional parameters):

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
Can you provide all the overload declarations so that I can update the documentation ?
speedfixer
Posts: 606
Joined: Nov 28, 2012 1:27
Location: CA, USA moving to WA, USA
Contact:

Re: GETMOUSE and integer

Post by speedfixer »

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
update the wiki?
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: GETMOUSE and integer

Post by fxm »

speedfixer wrote:
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
update the wiki?
The SETMOUSE keyword has been updated as follows (integer => long, everywhere):
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 ?
coderJeff
Site Admin
Posts: 4313
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: GETMOUSE and integer

Post by coderJeff »

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
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: GETMOUSE and integer

Post by fxm »

Thanks.

Done:
- KeyPgGetmouse → fxm [updated declaration syntax]
Post Reply