AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
Functions
sdl_events.h File Reference

Produce virtual input events from SDL events. More...

#include <SDL2/SDL_events.h>
#include "socket.h"
Include dependency graph for sdl_events.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int sdl_mouse_motion (SDL_Event *event, socket_t input_socket)
 Produce a mouse motion event to the virtual input. More...
 
int sdl_mouse_wheel (SDL_Event *event, socket_t input_socket)
 Produce a mouse wheel event to the virtual input. More...
 
int sdl_mouse_button (SDL_Event *event, socket_t input_socket)
 Produce a mouse click event to the virtual input. More...
 
int sdl_key (SDL_Event *event, socket_t input_socket)
 Produce a key press/release event to the virtual input. More...
 

Detailed Description

Produce virtual input events from SDL events.

The strings will be parsed by the daemon on the VM side and dispatched as relevant uinput events.

Definition in file sdl_events.h.

Function Documentation

int sdl_key ( SDL_Event *  event,
socket_t  input_socket 
)

Produce a key press/release event to the virtual input.

Definition at line 64 of file sdl_events.c.

Here is the call graph for this function:

int sdl_mouse_button ( SDL_Event *  event,
socket_t  input_socket 
)

Produce a mouse click event to the virtual input.

Definition at line 141 of file sdl_events.c.

int sdl_mouse_motion ( SDL_Event *  event,
socket_t  input_socket 
)

Produce a mouse motion event to the virtual input.

Definition at line 112 of file sdl_events.c.

int sdl_mouse_wheel ( SDL_Event *  event,
socket_t  input_socket 
)

Produce a mouse wheel event to the virtual input.

Definition at line 126 of file sdl_events.c.