src/video/ataricommon/SDL_ikbdinterrupt_s.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 10 Mar 2002 03:33:59 +0000
changeset 305 9c6613983e85
parent 297 f6ffac90895c
child 769 b8d311d90021
permissions -rw-r--r--
Atari port cleanups from Patrice
slouken@281
     1
/*
slouken@281
     2
    SDL - Simple DirectMedia Layer
slouken@297
     3
    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002  Sam Lantinga
slouken@281
     4
slouken@281
     5
    This library is free software; you can redistribute it and/or
slouken@281
     6
    modify it under the terms of the GNU Library General Public
slouken@281
     7
    License as published by the Free Software Foundation; either
slouken@281
     8
    version 2 of the License, or (at your option) any later version.
slouken@281
     9
slouken@281
    10
    This library is distributed in the hope that it will be useful,
slouken@281
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@281
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@281
    13
    Library General Public License for more details.
slouken@281
    14
slouken@281
    15
    You should have received a copy of the GNU Library General Public
slouken@281
    16
    License along with this library; if not, write to the Free
slouken@281
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@281
    18
slouken@281
    19
    Sam Lantinga
slouken@281
    20
    slouken@libsdl.org
slouken@281
    21
*/
slouken@281
    22
slouken@281
    23
#ifdef SAVE_RCSID
slouken@281
    24
static char rcsid =
slouken@281
    25
 "@(#) $Id$";
slouken@281
    26
#endif
slouken@281
    27
slouken@281
    28
/*
slouken@281
    29
 *	Mouse vector
slouken@281
    30
 *
slouken@281
    31
 *	Patrice Mandin
slouken@281
    32
 */
slouken@281
    33
slouken@281
    34
#ifndef _SDL_IKBDINTERRUPT_S_H_
slouken@281
    35
#define _SDL_IKBDINTERRUPT_S_H_
slouken@281
    36
slouken@281
    37
#include <mint/osbind.h>
slouken@281
    38
slouken@281
    39
#include "SDL_types.h"
slouken@281
    40
slouken@305
    41
/* Const */
slouken@305
    42
slouken@305
    43
#define IKBD_JOY_UP		(1<<0)
slouken@305
    44
#define IKBD_JOY_DOWN	(1<<1)
slouken@305
    45
#define IKBD_JOY_LEFT	(1<<2)
slouken@305
    46
#define IKBD_JOY_RIGHT	(1<<3)
slouken@305
    47
#define IKBD_JOY_FIRE	(1<<7)
slouken@305
    48
slouken@281
    49
/* Variables */
slouken@281
    50
slouken@281
    51
extern Uint8  SDL_AtariIkbd_keyboard[128];	/* Keyboard table */
slouken@305
    52
extern Uint16 SDL_AtariIkbd_mouseb;	/* Mouse on port 0, buttons */
slouken@305
    53
extern Sint16 SDL_AtariIkbd_mousex;	/* Mouse X relative motion */
slouken@305
    54
extern Sint16 SDL_AtariIkbd_mousey;	/* Mouse Y relative motion */
slouken@305
    55
extern Uint16 SDL_AtariIkbd_joystick;	/* Joystick on port 1 */
slouken@281
    56
slouken@305
    57
extern Uint16 SDL_AtariIkbd_enabled;	/* For joystick driver to know
slouken@305
    58
											if this is usable */
slouken@305
    59
										
slouken@281
    60
/* Functions */ 
slouken@281
    61
slouken@281
    62
extern void SDL_AtariIkbdInstall(void);
slouken@281
    63
extern void SDL_AtariIkbdUninstall(void);
slouken@281
    64
slouken@281
    65
#endif /* _SDL_IKBDINTERRUPT_S_H_ */