mirror of https://github.com/Genymobile/scrcpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
644 B
C
31 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
|