|
|
1.1.1.2 ! root 1: /* 1.1 root 2: * UAE - The Un*x Amiga Emulator 1.1.1.2 ! root 3: * 1.1 root 4: * Joystick emulation stubs 1.1.1.2 ! root 5: * 1.1 root 6: * Copyright 1997 Bernd Schmidt 1.1.1.2 ! root 7: * Copyright 2003 Richard Drummond 1.1 root 8: */ 9: 10: #include "sysconfig.h" 11: #include "sysdeps.h" 12: 13: #include "config.h" 14: #include "options.h" 15: #include "memory.h" 16: #include "custom.h" 1.1.1.2 ! root 17: #include "inputdevice.h" 1.1 root 18: 1.1.1.2 ! root 19: static int init_joysticks (void) ! 20: { ! 21: return 1; ! 22: } ! 23: ! 24: static void close_joysticks (void) ! 25: { ! 26: } ! 27: ! 28: static int acquire_joystick (int num, int flags) ! 29: { ! 30: return 0; ! 31: } ! 32: ! 33: static void unacquire_joystick (int num) ! 34: { ! 35: } 1.1 root 36: 1.1.1.2 ! root 37: static void read_joysticks (void) 1.1 root 38: { 39: } 40: 1.1.1.2 ! root 41: static int get_joystick_num (void) 1.1 root 42: { 1.1.1.2 ! root 43: return 0; 1.1 root 44: } 45: 1.1.1.2 ! root 46: static char *get_joystick_name (int joy) 1.1 root 47: { 1.1.1.2 ! root 48: return 0; 1.1 root 49: } 50: 1.1.1.2 ! root 51: static int get_joystick_widget_num (int joy) ! 52: { ! 53: return 0; ! 54: } ! 55: ! 56: static int get_joystick_widget_type (int joy, int num, char *name, uae_u32 *code) ! 57: { ! 58: return IDEV_WIDGET_NONE; ! 59: } ! 60: ! 61: static int get_joystick_widget_first (int joy, int type) ! 62: { ! 63: return -1; ! 64: } ! 65: ! 66: struct inputdevice_functions inputdevicefunc_joystick = { ! 67: init_joysticks, close_joysticks, acquire_joystick, unacquire_joystick, ! 68: read_joysticks, get_joystick_num, get_joystick_name, ! 69: get_joystick_widget_num, get_joystick_widget_type, ! 70: get_joystick_widget_first ! 71: }; ! 72: ! 73: /* ! 74: * Set default inputdevice config for SDL joysticks ! 75: */ ! 76: void input_get_default_joystick (struct uae_input_device *uid) ! 77: { ! 78: uid[0].enabled = 0; ! 79: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.