RetroArch
Macros | Functions | Variables
dos_joypad.c File Reference
#include <pc.h>
#include <dos.h>
#include <go32.h>
#include <dpmi.h>
#include <sys/segments.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <libretro.h>
#include "../input_driver.h"
#include "../input_keymaps.h"
#include "../../tasks/tasks_internal.h"
#include "../drivers_keyboard/keyboard_event_dos.h"
Include dependency graph for dos_joypad.c:

Macros

#define END_FUNC(x)   static void x##_End() { }
 
#define LOCK_VAR(x)   LockData((void*)&x, sizeof(x))
 
#define LOCK_FUNC(x)   LockCode(x, (int)x##_End - (int)x)
 

Functions

int LockData (void *a, int size)
 
int LockCode (void *a, int size)
 
static void keyb_int (void)
 
static void hook_keyb_int (void)
 
static void unhook_keyb_int (void)
 
static const char * dos_joypad_name (unsigned pad)
 
static void dos_joypad_autodetect_add (unsigned autoconf_pad)
 
static bool dos_joypad_init (void *data)
 
static bool dos_joypad_button (unsigned port_num, uint16_t key)
 
static void dos_joypad_poll (void)
 
static bool dos_joypad_query_pad (unsigned pad)
 
static int16_t dos_joypad_axis (unsigned port_num, uint32_t joyaxis)
 
static void dos_joypad_destroy (void)
 

Variables

static uint16_t normal_keys [LAST_KEYCODE+1]
 
static _go32_dpmi_seginfo old_kbd_int
 
static _go32_dpmi_seginfo kbd_int
 
input_device_driver_t dos_joypad
 

Macro Definition Documentation

◆ END_FUNC

#define END_FUNC (   x)    static void x##_End() { }

◆ LOCK_FUNC

#define LOCK_FUNC (   x)    LockCode(x, (int)x##_End - (int)x)

◆ LOCK_VAR

#define LOCK_VAR (   x)    LockData((void*)&x, sizeof(x))

Function Documentation

◆ dos_joypad_autodetect_add()

static void dos_joypad_autodetect_add ( unsigned  autoconf_pad)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dos_joypad_axis()

static int16_t dos_joypad_axis ( unsigned  port_num,
uint32_t  joyaxis 
)
static

◆ dos_joypad_button()

static bool dos_joypad_button ( unsigned  port_num,
uint16_t  key 
)
static
Here is the call graph for this function:

◆ dos_joypad_destroy()

static void dos_joypad_destroy ( void  )
static
Here is the call graph for this function:

◆ dos_joypad_init()

static bool dos_joypad_init ( void data)
static
Here is the call graph for this function:

◆ dos_joypad_name()

static const char* dos_joypad_name ( unsigned  pad)
static
Here is the caller graph for this function:

◆ dos_joypad_poll()

static void dos_joypad_poll ( void  )
static
Here is the call graph for this function:

◆ dos_joypad_query_pad()

static bool dos_joypad_query_pad ( unsigned  pad)
static

◆ hook_keyb_int()

static void hook_keyb_int ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ keyb_int()

static void keyb_int ( void  )
static
Here is the caller graph for this function:

◆ LockCode()

int LockCode ( void a,
int  size 
)

◆ LockData()

int LockData ( void a,
int  size 
)

◆ unhook_keyb_int()

static void unhook_keyb_int ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ dos_joypad

Initial value:
= {
"dos",
}
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool dos_joypad_query_pad(unsigned pad)
Definition: dos_joypad.c:233
static void dos_joypad_destroy(void)
Definition: dos_joypad.c:243
static int16_t dos_joypad_axis(unsigned port_num, uint32_t joyaxis)
Definition: dos_joypad.c:238
static const char * dos_joypad_name(unsigned pad)
Definition: dos_joypad.c:147
static bool dos_joypad_init(void *data)
Definition: dos_joypad.c:165
static void dos_joypad_poll(void)
Definition: dos_joypad.c:210
static bool dos_joypad_button(unsigned port_num, uint16_t key)
Definition: dos_joypad.c:176

◆ kbd_int

_go32_dpmi_seginfo kbd_int
static

◆ normal_keys

uint16_t normal_keys[LAST_KEYCODE+1]
static

◆ old_kbd_int

_go32_dpmi_seginfo old_kbd_int
static