Revision 200
zoom controls
proj_func.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
#include "ent.h" |
5 | 5 |
|
6 |
#include <stdint.h> |
|
7 |
|
|
6 | 8 |
/** |
7 | 9 |
* @brief Cleans up all memory, unsubscribes interrupts. |
8 | 10 |
* @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK |
... | ... | |
17 | 19 |
*/ |
18 | 20 |
void update_movement(ent_t *p); |
19 | 21 |
|
22 |
typedef struct keys { |
|
23 |
uint8_t w_pressed : 1; |
|
24 |
uint8_t a_pressed : 1; |
|
25 |
uint8_t s_pressed : 1; |
|
26 |
uint8_t d_pressed : 1; |
|
27 |
uint8_t ctrl_pressed : 1; |
|
28 |
uint8_t plus_pressed : 1; |
|
29 |
uint8_t minus_pressed : 1; |
|
30 |
} keys_t; |
|
31 |
|
|
20 | 32 |
void update_mouse_position(struct packet *p); |
21 | 33 |
|
34 |
void update_scale(void); |
|
35 |
|
|
22 | 36 |
int32_t get_mouse_X(void); |
23 | 37 |
|
24 | 38 |
int32_t get_mouse_Y(void); |
Also available in: Unified diff