/usr/include/allegro5/mouse.h is in liballegro5-dev 2:5.2.3.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | /* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
* /\____/
* \_/__/
*
* Mouse routines.
*
* See readme.txt for copyright information.
*/
#ifndef __al_included_allegro5_mouse_h
#define __al_included_allegro5_mouse_h
#include "allegro5/base.h"
#include "allegro5/events.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Allow up to four extra axes for future expansion. */
#define ALLEGRO_MOUSE_MAX_EXTRA_AXES 4
typedef struct ALLEGRO_MOUSE ALLEGRO_MOUSE;
/* Type: ALLEGRO_MOUSE_STATE
*/
typedef struct ALLEGRO_MOUSE_STATE ALLEGRO_MOUSE_STATE;
struct ALLEGRO_MOUSE_STATE
{
/* (x, y) Primary mouse position
* (z) Mouse wheel position (1D 'wheel'), or,
* (w, z) Mouse wheel position (2D 'ball')
* display - the display the mouse is on (coordinates are relative to this)
* pressure - the pressure applied to the mouse (for stylus/tablet)
*/
int x;
int y;
int z;
int w;
int more_axes[ALLEGRO_MOUSE_MAX_EXTRA_AXES];
int buttons;
float pressure;
struct ALLEGRO_DISPLAY *display;
};
AL_FUNC(bool, al_is_mouse_installed, (void));
AL_FUNC(bool, al_install_mouse, (void));
AL_FUNC(void, al_uninstall_mouse, (void));
AL_FUNC(unsigned int, al_get_mouse_num_buttons, (void));
AL_FUNC(unsigned int, al_get_mouse_num_axes, (void));
AL_FUNC(bool, al_set_mouse_xy, (struct ALLEGRO_DISPLAY *display, int x, int y));
AL_FUNC(bool, al_set_mouse_z, (int z));
AL_FUNC(bool, al_set_mouse_w, (int w));
AL_FUNC(bool, al_set_mouse_axis, (int axis, int value));
AL_FUNC(void, al_get_mouse_state, (ALLEGRO_MOUSE_STATE *ret_state));
AL_FUNC(bool, al_mouse_button_down, (const ALLEGRO_MOUSE_STATE *state, int button));
AL_FUNC(int, al_get_mouse_state_axis, (const ALLEGRO_MOUSE_STATE *state, int axis));
AL_FUNC(bool, al_get_mouse_cursor_position, (int *ret_x, int *ret_y));
AL_FUNC(bool, al_grab_mouse, (struct ALLEGRO_DISPLAY *display));
AL_FUNC(bool, al_ungrab_mouse, (void));
AL_FUNC(void, al_set_mouse_wheel_precision, (int precision));
AL_FUNC(int, al_get_mouse_wheel_precision, (void));
AL_FUNC(ALLEGRO_EVENT_SOURCE *, al_get_mouse_event_source, (void));
#ifdef __cplusplus
}
#endif
#endif
/* vim: set sts=3 sw=3 et: */
|