[↑]
SmileBASIC4 Replica Reference
MBUTTON
1. Get all mouse button statuses together

MBUTTON()

・If you want to get the status of only one button, refer to another MBUTTON help page.

Argument

Return Value

Mouse button state is returned bit by bit

2. Get the operation status of a specific mouse button

MBUTTON(ButtonID[,FunctionID])

Argument

ButtonID

ID of a button you want to check

0 Left Button
1 Right Button
2 Center Button
3 Button 4
4 Button 5

FunctionID

Type of condition you want to know

0 Button is pressed
1 (Not Available)
2 The moment the button is pressed
3 The moment the button is released

・0, if not specified.

Return Value

1 if the specified button satisfies the specified function ID conditions, 0 otherwise

About this site
Our site is an unofficial manual site of programming software "SmileBASIC" for NintendoSwitch™.
I acquire the content of the site from the official reference site of the SmileBoom Co.Ltd. that is the development and sales cause of the software in real time (a minimum period of 24 hours update) and display it. For automatic update, contents may become improper.
Please confirm the correct content in an official site.

June 3, 2020
by mim
OK
|