mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
28 lines
597 B
C
28 lines
597 B
C
#ifndef SC_EVENTS
|
|
#define SC_EVENTS
|
|
|
|
#include "common.h"
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <SDL_events.h>
|
|
|
|
enum {
|
|
SC_EVENT_NEW_FRAME = SDL_USEREVENT,
|
|
SC_EVENT_DEVICE_DISCONNECTED,
|
|
SC_EVENT_SERVER_CONNECTION_FAILED,
|
|
SC_EVENT_SERVER_CONNECTED,
|
|
SC_EVENT_USB_DEVICE_DISCONNECTED,
|
|
SC_EVENT_DEMUXER_ERROR,
|
|
SC_EVENT_RECORDER_ERROR,
|
|
SC_EVENT_SCREEN_INIT_SIZE,
|
|
SC_EVENT_TIME_LIMIT_REACHED,
|
|
SC_EVENT_CONTROLLER_ERROR,
|
|
};
|
|
|
|
bool
|
|
sc_push_event_impl(uint32_t type, const char *name);
|
|
|
|
#define sc_push_event(TYPE) sc_push_event_impl(TYPE, # TYPE)
|
|
|
|
#endif
|