dosbox-wii/include/mapper.h

40 lines
1.3 KiB
C
Raw Normal View History

2009-05-03 00:02:15 +02:00
/*
2009-05-03 00:28:34 +02:00
* Copyright (C) 2002-2007 The DOSBox Team
2009-05-03 00:02:15 +02:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
2009-05-03 00:18:08 +02:00
#ifndef DOSBOX_MAPPER_H
#define DOSBOX_MAPPER_H
2009-05-03 00:02:15 +02:00
enum MapKeys {
MK_f1,MK_f2,MK_f3,MK_f4,MK_f5,MK_f6,MK_f7,MK_f8,MK_f9,MK_f10,MK_f11,MK_f12,
MK_return,MK_kpminus,MK_scrolllock,MK_printscreen,MK_pause,
};
2009-05-03 00:18:08 +02:00
typedef void (MAPPER_Handler)(bool pressed);
2009-05-03 00:28:34 +02:00
void MAPPER_AddHandler(MAPPER_Handler * handler,MapKeys key,Bitu mods,char const * const eventname,char const * const buttonname);
2009-05-03 00:02:15 +02:00
void MAPPER_Init(void);
void MAPPER_StartUp(Section * sec);
2009-05-03 00:18:08 +02:00
void MAPPER_Run(bool pressed);
void MAPPER_LosingFocus(void);
2009-05-03 00:02:15 +02:00
#define MMOD1 0x1
#define MMOD2 0x2
#endif