SynGame/allegro-5.0.10-mingw-4.7.0/include/allegro5/internal/aintern_mouse.h

45 lines
1.0 KiB
C
Raw Normal View History

2019-09-10 11:14:36 +03:00
#ifndef __al_included_allegro5_aintern_mouse_h
#define __al_included_allegro5_aintern_mouse_h
#include "allegro5/internal/aintern_driver.h"
#include "allegro5/internal/aintern_events.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ALLEGRO_MOUSE_DRIVER
{
int msedrv_id;
const char *msedrv_name;
const char *msedrv_desc;
const char *msedrv_ascii_name;
AL_METHOD(bool, init_mouse, (void));
AL_METHOD(void, exit_mouse, (void));
AL_METHOD(ALLEGRO_MOUSE*, get_mouse, (void));
AL_METHOD(unsigned int, get_mouse_num_buttons, (void));
AL_METHOD(unsigned int, get_mouse_num_axes, (void));
AL_METHOD(bool, set_mouse_xy, (ALLEGRO_DISPLAY *display, int x, int y));
AL_METHOD(bool, set_mouse_axis, (int which, int value));
AL_METHOD(void, get_mouse_state, (ALLEGRO_MOUSE_STATE *ret_state));
} ALLEGRO_MOUSE_DRIVER;
AL_ARRAY(_AL_DRIVER_INFO, _al_mouse_driver_list);
struct ALLEGRO_MOUSE
{
ALLEGRO_EVENT_SOURCE es;
};
#ifdef __cplusplus
}
#endif
#endif
/* vi ts=8 sts=3 sw=3 et */