ab912c23e7
This enables necessary functions once for all. As a consequence, define common.h before any other header.
30 lines
644 B
C
30 lines
644 B
C
#ifndef CONVERT_H
|
|
#define CONVERT_H
|
|
|
|
#include "common.h"
|
|
|
|
#include <stdbool.h>
|
|
#include <SDL2/SDL_events.h>
|
|
|
|
#include "control_msg.h"
|
|
|
|
bool
|
|
convert_keycode_action(SDL_EventType from, enum android_keyevent_action *to);
|
|
|
|
enum android_metastate
|
|
convert_meta_state(SDL_Keymod mod);
|
|
|
|
bool
|
|
convert_keycode(SDL_Keycode from, enum android_keycode *to, uint16_t mod,
|
|
bool prefer_text);
|
|
|
|
enum android_motionevent_buttons
|
|
convert_mouse_buttons(uint32_t state);
|
|
|
|
bool
|
|
convert_mouse_action(SDL_EventType from, enum android_motionevent_action *to);
|
|
|
|
bool
|
|
convert_touch_action(SDL_EventType from, enum android_motionevent_action *to);
|
|
|
|
#endif
|