2018-02-15 19:07:47 +08:00
|
|
|
#ifndef INPUTMANAGER_H
|
|
|
|
#define INPUTMANAGER_H
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
#include "controller.h"
|
2018-02-15 19:24:16 +08:00
|
|
|
#include "fpscounter.h"
|
|
|
|
#include "frames.h"
|
2018-02-15 19:07:47 +08:00
|
|
|
#include "screen.h"
|
|
|
|
|
|
|
|
struct input_manager {
|
|
|
|
struct controller *controller;
|
2018-02-15 19:24:16 +08:00
|
|
|
struct frames *frames;
|
2018-02-15 19:07:47 +08:00
|
|
|
struct screen *screen;
|
|
|
|
};
|
|
|
|
|
|
|
|
void input_manager_process_text_input(struct input_manager *input_manager,
|
|
|
|
const SDL_TextInputEvent *event);
|
|
|
|
void input_manager_process_key(struct input_manager *input_manager,
|
|
|
|
const SDL_KeyboardEvent *event);
|
|
|
|
void input_manager_process_mouse_motion(struct input_manager *input_manager,
|
|
|
|
const SDL_MouseMotionEvent *event);
|
|
|
|
void input_manager_process_mouse_button(struct input_manager *input_manager,
|
|
|
|
const SDL_MouseButtonEvent *event);
|
|
|
|
void input_manager_process_mouse_wheel(struct input_manager *input_manager,
|
|
|
|
const SDL_MouseWheelEvent *event);
|
|
|
|
|
|
|
|
#endif
|