RetroArch
Classes | Macros | Typedefs | Functions | Variables
input_remote.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <compat/strl.h>
#include <compat/posix_string.h>
#include <file/file_path.h>
#include <retro_miscellaneous.h>
#include <libretro.h>
#include <net/net_compat.h>
#include <net/net_socket.h>
#include "input_remote.h"
#include "../configuration.h"
#include "../msg_hash.h"
#include "../verbosity.h"
Include dependency graph for input_remote.c:

Classes

struct  remote_message
 
struct  input_remote
 
struct  input_remote_state
 

Macros

#define DEFAULT_NETWORK_GAMEPAD_PORT   55400
 
#define UDP_FRAME_PACKETS   16
 

Typedefs

typedef struct input_remote_state input_remote_state_t
 

Functions

static input_remote_state_tinput_remote_get_state_ptr (void)
 
input_remote_tinput_remote_new (uint16_t port, unsigned max_users)
 
void input_remote_free (input_remote_t *handle, unsigned max_users)
 
void input_remote_state (int16_t *ret, unsigned port, unsigned device, unsigned idx, unsigned id)
 
bool input_remote_key_pressed (int key, unsigned port)
 
void input_remote_poll (input_remote_t *handle, unsigned max_users)
 

Variables

static input_remote_state_t remote_st_ptr
 

Macro Definition Documentation

◆ DEFAULT_NETWORK_GAMEPAD_PORT

#define DEFAULT_NETWORK_GAMEPAD_PORT   55400

◆ UDP_FRAME_PACKETS

#define UDP_FRAME_PACKETS   16

Typedef Documentation

◆ input_remote_state_t

Function Documentation

◆ input_remote_free()

void input_remote_free ( input_remote_t handle,
unsigned  max_users 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_remote_get_state_ptr()

static input_remote_state_t* input_remote_get_state_ptr ( void  )
static
Here is the caller graph for this function:

◆ input_remote_key_pressed()

bool input_remote_key_pressed ( int  key,
unsigned  port 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_remote_new()

input_remote_t* input_remote_new ( uint16_t  port,
unsigned  max_users 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_remote_poll()

void input_remote_poll ( input_remote_t handle,
unsigned  max_users 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_remote_state()

void input_remote_state ( int16_t ret,
unsigned  port,
unsigned  device,
unsigned  idx,
unsigned  id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ remote_st_ptr

input_remote_state_t remote_st_ptr
static