AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
sdl_events.h
Go to the documentation of this file.
1 
8 #ifndef __SDL_EVENTS_H__
9 #define __SDL_EVENTS_H__
10 
11 #include <SDL2/SDL_events.h>
12 #include "socket.h"
13 
15 int sdl_mouse_motion(SDL_Event* event, socket_t input_socket);
16 
18 int sdl_mouse_wheel(SDL_Event* event, socket_t input_socket);
19 
21 int sdl_mouse_button(SDL_Event* event, socket_t input_socket);
22 
24 int sdl_key(SDL_Event* event, socket_t input_socket);
25 
26 #endif
int sdl_key(SDL_Event *event, socket_t input_socket)
Produce a key press/release event to the virtual input.
Definition: sdl_events.c:64
int socket_t
Alias to differenciate between regular ints and socket fds.
Definition: socket.h:13
int sdl_mouse_wheel(SDL_Event *event, socket_t input_socket)
Produce a mouse wheel event to the virtual input.
Definition: sdl_events.c:126
int sdl_mouse_motion(SDL_Event *event, socket_t input_socket)
Produce a mouse motion event to the virtual input.
Definition: sdl_events.c:112
Define socket utilities to simplify networking.
int sdl_mouse_button(SDL_Event *event, socket_t input_socket)
Produce a mouse click event to the virtual input.
Definition: sdl_events.c:141