~mgiuca/dosbox/trunk

1737 by harekiet
New mapper changes
1
 /*
3788 by qbix79
Year update.
2
 *  Copyright (C) 2002-2015  The DOSBox Team
1737 by harekiet
New mapper changes
3
 *
4
 *  This program is free software; you can redistribute it and/or modify
5
 *  it under the terms of the GNU General Public License as published by
6
 *  the Free Software Foundation; either version 2 of the License, or
7
 *  (at your option) any later version.
8
 *
9
 *  This program is distributed in the hope that it will be useful,
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1817 by qbix79
Typo in preamble
12
 *  GNU General Public License for more details.
1737 by harekiet
New mapper changes
13
 *
14
 *  You should have received a copy of the GNU General Public License
15
 *  along with this program; if not, write to the Free Software
16
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
 */
18
2053 by qbix79
new include system
19
#ifndef DOSBOX_MAPPER_H
20
#define DOSBOX_MAPPER_H
1737 by harekiet
New mapper changes
21
22
enum MapKeys {
23
	MK_f1,MK_f2,MK_f3,MK_f4,MK_f5,MK_f6,MK_f7,MK_f8,MK_f9,MK_f10,MK_f11,MK_f12,
3561 by h-a-l-9000
Add new features to the config command for control of the config file:
24
	MK_return,MK_kpminus,MK_scrolllock,MK_printscreen,MK_pause,MK_home
1737 by harekiet
New mapper changes
25
26
};
27
2404 by harekiet
New format for mapper handlers to support keeping keys pressed.
28
typedef void (MAPPER_Handler)(bool pressed);
2501 by qbix79
Some better const usage.
29
void MAPPER_AddHandler(MAPPER_Handler * handler,MapKeys key,Bitu mods,char const * const eventname,char const * const buttonname);
1875 by qbix79
Add startmapper and update documentation
30
void MAPPER_Init(void);
31
void MAPPER_StartUp(Section * sec);
2404 by harekiet
New format for mapper handlers to support keeping keys pressed.
32
void MAPPER_Run(bool pressed);
3326 by qbix79
Some mapper fixes related to interfacing with mapper overlay. Fixes missing keyups etc. and these :)
33
void MAPPER_RunInternal();
2369 by harekiet
Add the missing losing focus call
34
void MAPPER_LosingFocus(void);
1875 by qbix79
Add startmapper and update documentation
35
1737 by harekiet
New mapper changes
36
37
#define MMOD1 0x1
38
#define MMOD2 0x2
39
40
#endif