Annotation of uae/src/od-generic/joystick.c, revision 1.1.1.3

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 "options.h"
                     14: #include "memory.h"
                     15: #include "custom.h"
1.1.1.2   root       16: #include "inputdevice.h"
1.1       root       17: 
1.1.1.2   root       18: static int init_joysticks (void)
                     19: {
                     20:    return 1;
                     21: }
                     22: 
                     23: static void close_joysticks (void)
                     24: {
                     25: }
                     26: 
                     27: static int acquire_joystick (int num, int flags)
                     28: {
                     29:     return 0;
                     30: }
                     31: 
                     32: static void unacquire_joystick (int num)
                     33: {
                     34: }
1.1       root       35: 
1.1.1.2   root       36: static void read_joysticks (void)
1.1       root       37: {
                     38: }
                     39: 
1.1.1.2   root       40: static int get_joystick_num (void)
1.1       root       41: {
1.1.1.2   root       42:     return 0;
1.1       root       43: }
                     44: 
1.1.1.2   root       45: static char *get_joystick_name (int joy)
1.1       root       46: {
1.1.1.2   root       47:     return 0;
1.1       root       48: }
                     49: 
1.1.1.2   root       50: static int get_joystick_widget_num (int joy)
                     51: {
                     52:     return 0;
                     53: }
                     54: 
                     55: static int get_joystick_widget_type (int joy, int num, char *name, uae_u32 *code)
                     56: {
                     57:     return IDEV_WIDGET_NONE;
                     58: }
                     59: 
                     60: static int get_joystick_widget_first (int joy, int type)
                     61: {
                     62:     return -1;
                     63: }
                     64: 
                     65: struct inputdevice_functions inputdevicefunc_joystick = {
                     66:     init_joysticks, close_joysticks, acquire_joystick, unacquire_joystick,
                     67:     read_joysticks, get_joystick_num, get_joystick_name,
                     68:     get_joystick_widget_num, get_joystick_widget_type,
                     69:     get_joystick_widget_first
                     70: };
                     71: 
                     72: /*
                     73:  * Set default inputdevice config for SDL joysticks
                     74:  */
                     75: void input_get_default_joystick (struct uae_input_device *uid)
                     76: {
                     77:     uid[0].enabled = 0;
                     78: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.