You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
563 B
27 lines
563 B
|
4 years ago
|
#pragma once
|
||
|
|
|
||
|
|
#include <cstdint>
|
||
|
|
|
||
|
3 years ago
|
#include <SDL.h>
|
||
|
|
|
||
|
|
#include "engine/point.hpp"
|
||
|
|
|
||
|
4 years ago
|
#ifdef USE_SDL1
|
||
|
|
#include "utils/sdl2_to_1_2_backports.h"
|
||
|
|
#endif
|
||
|
|
|
||
|
|
namespace devilution {
|
||
|
|
|
||
|
4 years ago
|
using EventHandler = void (*)(const SDL_Event &event, uint16_t modState);
|
||
|
4 years ago
|
|
||
|
3 years ago
|
/** @brief The current input handler function */
|
||
|
|
extern EventHandler CurrentEventHandler;
|
||
|
|
|
||
|
|
EventHandler SetEventHandler(EventHandler NewProc);
|
||
|
4 years ago
|
|
||
|
4 years ago
|
bool FetchMessage(SDL_Event *event, uint16_t *modState);
|
||
|
|
|
||
|
|
void HandleMessage(const SDL_Event &event, uint16_t modState);
|
||
|
4 years ago
|
|
||
|
|
} // namespace devilution
|