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