aboutsummaryrefslogtreecommitdiff
path: root/src/controller.h
blob: 3476641b08374c69c940f9ccbf1c59d4982b800d (plain)
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
#pragma once

#include "config.h"

b32 is_key_pressed(i32 btn);
b32 is_key_held(i32 btn);
b32 is_key_released(i32 btn);

b32 is_mouse_pressed(i32 btn);
b32 is_mouse_held(i32 btn);
b32 is_mouse_released(i32 btn);

void set_mouse_scale(f32 x, f32 y);
vec2 get_mouse_pos(void);
fx32 get_wheel_movement(void);

b32 is_button_pressed(i32 btn);
b32 is_button_held(i32 btn);
b32 is_button_released(i32 btn);

i32 last_button_press(void);

vec2 get_dir_input(void);

// This portion is implemented in rumble.c! //
void set_rumble(f32 duration, f32 strength);
void poll_rumble(f32 dt);
void stop_rumble(void);