See also: remove_mouse, poll_mouse, mouse_x, show_mouse, get_mouse_mickeys, position_mouse, set_mouse_range, set_mouse_speed, Standard config variables.
Examples using this: Available Allegro examples.
See also: install_mouse, allegro_exit.
See also: mouse_needs_poll, install_mouse, mouse_x.
Examples using this: exlights, exmouse, exshade, exspline, extrans.
See also: poll_mouse, install_mouse, mouse_x.
The mouse_pos variable has the current X coordinate in the high word and the Y in the low word. This may be useful in tight polling loops where a mouse interrupt could occur between your reading of the two separate variables, since you can copy this value into a local variable with a single instruction and then split it up at your leisure.if (mouse_b & 1) printf("Left button is pressed\n"); if (!(mouse_b & 2)) printf("Right button is not pressed\n");
See also: install_mouse, poll_mouse, mouse_needs_poll.
Examples using this: exalpha, exlights, exmouse, exshade, exspline, extrans.
See also: set_mouse_sprite, set_mouse_sprite_focus.
See also: install_mouse, install_timer, set_mouse_sprite, scare_mouse, freeze_mouse_flag.
Examples using this: exmouse, exshade, exspline.
See also: unscare_mouse, scare_mouse_area, show_mouse.
See also: unscare_mouse, scare_mouse, show_mouse.
See also: scare_mouse, scare_mouse_area.
See also: show_mouse.
See also: install_mouse, position_mouse_z, set_mouse_range, set_mouse_speed.
See also: install_mouse, position_mouse.
See also: install_mouse, set_mouse_speed, position_mouse.
See also: install_mouse, set_mouse_range, position_mouse.
As a bonus, set_mouse_sprite(NULL) uses the current palette in choosing colors for the arrow. So if your arrow mouse sprite looks ugly after changing the palette, call set_mouse_sprite(NULL).
See also: install_mouse, show_mouse, set_mouse_sprite_focus.
Examples using this: exmouse.
See also: set_mouse_sprite.
Examples using this: exmouse.
See also: install_mouse.
Examples using this: exmouse.
See also: install_mouse.