2017-12-14 18:38:44 +08:00
|
|
|
#ifndef CONVERT_H
|
|
|
|
#define CONVERT_H
|
|
|
|
|
2019-03-03 06:52:22 +08:00
|
|
|
#include <stdbool.h>
|
2017-12-14 18:38:44 +08:00
|
|
|
#include <SDL2/SDL_events.h>
|
2019-03-03 06:52:22 +08:00
|
|
|
|
2021-01-09 02:18:02 +08:00
|
|
|
#include "common.h"
|
2019-05-31 20:55:11 +08:00
|
|
|
#include "control_msg.h"
|
2017-12-14 18:38:44 +08:00
|
|
|
|
2019-03-03 06:52:22 +08:00
|
|
|
bool
|
2019-10-20 18:49:47 +08:00
|
|
|
convert_keycode_action(SDL_EventType from, enum android_keyevent_action *to);
|
2019-03-03 03:09:56 +08:00
|
|
|
|
2019-10-20 18:49:47 +08:00
|
|
|
enum android_metastate
|
|
|
|
convert_meta_state(SDL_Keymod mod);
|
2019-03-03 03:09:56 +08:00
|
|
|
|
2019-03-03 06:52:22 +08:00
|
|
|
bool
|
2019-11-08 02:01:35 +08:00
|
|
|
convert_keycode(SDL_Keycode from, enum android_keycode *to, uint16_t mod,
|
|
|
|
bool prefer_text);
|
2019-10-20 18:49:47 +08:00
|
|
|
|
|
|
|
enum android_motionevent_buttons
|
|
|
|
convert_mouse_buttons(uint32_t state);
|
2018-01-22 23:50:08 +08:00
|
|
|
|
2019-09-23 03:30:05 +08:00
|
|
|
bool
|
2019-10-20 18:49:47 +08:00
|
|
|
convert_mouse_action(SDL_EventType from, enum android_motionevent_action *to);
|
2019-09-23 03:30:05 +08:00
|
|
|
|
2019-03-03 06:52:22 +08:00
|
|
|
bool
|
2019-10-20 18:49:47 +08:00
|
|
|
convert_touch_action(SDL_EventType from, enum android_motionevent_action *to);
|
2017-12-14 18:38:44 +08:00
|
|
|
|
|
|
|
#endif
|