/*
    Robot Interface
    (C) 2006 Jason Hunt
    nulluser@gmail.com

    File: joystick.h
*/

#ifndef JOYSTICK_H
#define JOYSTICK_H

typedef struct joystick_type
{
    double x, base_x;
    double y, base_y;
    
    bool buttons[16];
    
    bool up, down, left, right,
         up_left, up_right, 
         down_left, down_right;        
};

void joystick_start( void );
void joystick_check( void );

extern bool joystick_override;
extern joystick_type joystick;

#endif
