prosperon/source/engine/input.h

29 lines
372 B
C
Raw Normal View History

2021-11-30 21:29:18 -06:00
#ifndef INPUT_H
#define INPUT_H
#include <stdint.h>
2022-02-06 10:14:57 -06:00
#include "window.h"
2021-11-30 21:29:18 -06:00
extern int32_t mouseWheelX;
extern int32_t mouseWheelY;
extern int ychange;
extern int xchange;
extern float deltaT;
extern int quit;
2022-02-06 10:14:57 -06:00
void input_init();
2021-11-30 21:29:18 -06:00
void input_poll();
2022-02-06 10:14:57 -06:00
void cursor_hide();
void cursor_show();
int action_down(int scancode);
struct inputaction
{
int scancode;
};
2021-11-30 21:29:18 -06:00
#endif