Skip to content

Commit

Permalink
Mention mouse button constants in al_mouse_button_down doc
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkOates authored and SiegeLord committed Oct 5, 2024
1 parent 2e3e2dc commit 675749a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/src/refman/mouse.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef enum ALLEGRO_MOUSE_BUTTON

Since: 5.2.10

See also: [al_get_mouse_num_buttons]
See also: [al_get_mouse_num_buttons], [al_mouse_button_down]

## API: al_install_mouse

Expand Down Expand Up @@ -116,7 +116,12 @@ See also: [ALLEGRO_MOUSE_STATE], [al_get_mouse_state], [al_mouse_button_down]
## API: al_mouse_button_down

Return true if the mouse button specified was held down in the state
specified. Unlike most things, the first mouse button is numbered 1.
specified.

Unlike most things, the first mouse button is numbered 1. As a convenience, the constants
ALLEGRO_MOUSE_BUTTON_LEFT, ALLEGRO_MOUSE_BUTTON_RIGHT, ALLEGRO_MOUSE_BUTTON_MIDDLE are provided.
However, depending on the hardware there may be more or fewer mouse buttons. You can check
[al_get_mouse_num_buttons] if you want to be sure.

See also: [ALLEGRO_MOUSE_STATE], [al_get_mouse_state], [al_get_mouse_state_axis]

Expand Down

0 comments on commit 675749a

Please sign in to comment.