Files
scrcpy/app/src/event_converter.h
Romain Vimont 353e440ace Extract keyboard processor trait
This will allow to provide alternative key processors.
2021-10-17 16:21:37 +02:00

21 lines
385 B
C

#ifndef CONVERT_H
#define CONVERT_H
#include "common.h"
#include <stdbool.h>
#include <SDL2/SDL_events.h>
#include "control_msg.h"
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