prosperon/source/engine/input.h
2023-01-10 20:02:24 +00:00

36 lines
529 B
C

#ifndef INPUT_H
#define INPUT_H
#include <stdint.h>
#include "window.h"
#include "script.h"
extern int32_t mouseWheelX;
extern int32_t mouseWheelY;
extern int ychange;
extern int xchange;
extern float deltaT;
void input_init();
void input_poll(double wait);
void cursor_hide();
void cursor_show();
int action_down(int scancode);
int want_quit();
void quit();
void win_key_callback(GLFWwindow *w, int key, int scancode, int action, int mods);
struct inputaction
{
int scancode;
};
void set_pawn(void *pawn);
#endif