Your company here — click to reach over 10,000 unique daily visitors

exmouse - Man Page

Getting input from the mouse. Allegro game programming library.


#include <allegro.h>

Example exmouse


This program demonstrates how to get mouse input. The first part of the test retrieves the raw mouse input data and displays it on the screen without using any mouse cursor. When you press a key the standard arrow-like mouse cursor appears.  You are not restricted to this shape, and a second key press modifies the cursor to be several concentric colored circles. They are not joined together, so you can still see bits of what's behind when you move the cursor over the printed text message.

See Also

BITMAP(3), END_OF_MAIN(3), SCREEN_H(3), SCREEN_W(3), acquire_screen(3), allegro_error(3), allegro_init(3), allegro_message(3), bitmap_mask_color(3), circle(3), clear_keybuf(3), clear_to_color(3), create_bitmap(3), desktop_palette(3), destroy_bitmap(3), font(3), get_mouse_mickeys(3), install_keyboard(3), install_mouse(3), install_timer(3), key(3), keypressed(3), makecol(3), mouse_b(3), mouse_w(3), mouse_x(3), mouse_y(3), mouse_z(3), palette_color(3), poll_mouse(3), readkey(3), release_screen(3), screen(3), set_gfx_mode(3), set_mouse_sprite(3), set_mouse_sprite_focus(3), set_palette(3), show_mouse(3), textout_centre_ex(3), textout_ex(3), textprintf_centre_ex(3), textprintf_ex(3), textprintf_right_ex(3), vsync(3)

Referenced By

bitmap_mask_color(3), circle(3), get_mouse_mickeys(3), mouse_x(3), poll_mouse(3), set_mouse_sprite(3), set_mouse_sprite_focus(3), show_mouse(3), textprintf_right_ex(3).

version 4.4.3 Allegro manual