9460bdd87b
Pass scrcpy input events instead of SDL input events to mouse processors. These events represent exactly what mouse processors need, abstracted from any visual orientation and scaling applied on the SDL window. This makes the mouse processors independent of the "screen" instance, and the implementation source code independent of the SDL API.
21 lines
407 B
C
21 lines
407 B
C
#ifndef SC_MOUSE_INJECT_H
|
|
#define SC_MOUSE_INJECT_H
|
|
|
|
#include "common.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "controller.h"
|
|
#include "screen.h"
|
|
#include "trait/mouse_processor.h"
|
|
|
|
struct sc_mouse_inject {
|
|
struct sc_mouse_processor mouse_processor; // mouse processor trait
|
|
|
|
struct controller *controller;
|
|
};
|
|
|
|
void
|
|
sc_mouse_inject_init(struct sc_mouse_inject *mi, struct controller *controller);
|
|
|
|
#endif
|