view input/joystick.h @ 4516:d604c3db9a76

Direct rendering expansion: test with -vc divx4vfw: -vaa_dr: BENCHMARKs: V: 7.043s VO: 0.005s A: 0.528s Sys: 22.331s = 29.907s BENCHMARK%: V: 23.5498% VO: 0.0156% A: 1.7670% Sys: 74.6676% = 100.0000% -vaa_nodr: BENCHMARKs: V: 5.454s VO: 2.433s A: 0.519s Sys: 21.513s = 29.920s BENCHMARK%: V: 18.2296% VO: 8.1321% A: 1.7351% Sys: 71.9032% = 100.0000% speed up on 7.043 vs 7.687 = 10% on K7
author nick
date Sun, 03 Feb 2002 16:13:05 +0000
parents 8141d2c399e4
children 83128eed25f1
line wrap: on
line source


#define JOY_BASE   (0x100+128)
#define JOY_UP (JOY_BASE+0)
#define JOY_DOWN (JOY_BASE+1)
#define JOY_LEFT (JOY_BASE+2)
#define JOY_RIGHT (JOY_BASE+3)

#define JOY_BTN0 (JOY_BASE+4)
#define JOY_BTN1 (JOY_BASE+5)
#define JOY_BTN2 (JOY_BASE+6)
#define JOY_BTN3 (JOY_BASE+7)
#define JOY_BTN4 (JOY_BASE+8)
#define JOY_BTN5 (JOY_BASE+9)
#define JOY_BTN6 (JOY_BASE+10)
#define JOY_BTN7 (JOY_BASE+11)
#define JOY_BTN8 (JOY_BASE+12)
#define JOY_BTN9 (JOY_BASE+13)

int mp_input_joystick_init(char* dev);

int mp_input_joystick_read(int fd);