summaryrefslogtreecommitdiff
path: root/src/mouse.h
blob: 1770d7a4c906dd512c34bce0c62d21a53248babc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef MOUSE_H_
#define MOUSE_H_

struct Rect;

bool init_mouse();
void destroy_mouse();

void set_mouse_bounds(const Rect &rect);

int get_mouse_fd();
void process_mouse_event();

void get_pointer_pos(int *x, int *y);
int get_button_state();
int get_button(int bn);

#endif	// MOUSE_H_