Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
targets
ep128-old
keyboard_mapping.h
Go to the documentation of this file.
1
/* Xep128: Minimalistic Enterprise-128 emulator with focus on "exotic" hardware
2
Copyright (C)2015,2016 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
3
http://xep128.lgb.hu/
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
18
19
#ifndef __XEP128_KEYBOARD_MAPPING_H_INCLUDED
20
#define __XEP128_KEYBOARD_MAPPING_H_INCLUDED
21
22
#include <SDL_keyboard.h>
23
24
struct
keyMappingTable_st
{
25
SDL_Scancode
code
;
26
Uint8
posep
;
27
const
char
*
description
;
28
};
29
30
extern
const
struct
keyMappingTable_st
*
keymap_resolve_event
( SDL_Keysym sym );
31
extern
void
keymap_preinit_config_internal
(
void
);
32
extern
void
keymap_dump_config
( FILE *f );
33
extern
int
keymap_set_key_by_name
(
const
char
*
name
,
int
posep
);
34
35
#endif
keymap_set_key_by_name
int keymap_set_key_by_name(const char *name, int posep)
Definition:
keyboard_mapping.c:162
keyMappingTable_st
Definition:
keyboard_mapping.h:24
keyMappingTable_st::code
SDL_Scancode code
Definition:
keyboard_mapping.h:25
Uint8
uint8_t Uint8
Definition:
fat32.c:51
keyMappingTable_st::posep
Uint8 posep
Definition:
keyboard_mapping.h:26
keymap_preinit_config_internal
void keymap_preinit_config_internal(void)
Definition:
keyboard_mapping.c:173
keymap_resolve_event
const struct keyMappingTable_st * keymap_resolve_event(SDL_Keysym sym)
Definition:
keyboard_mapping.c:207
keymap_dump_config
void keymap_dump_config(FILE *f)
Definition:
keyboard_mapping.c:184
name
const char * name
Definition:
joystick.c:46
keyMappingTable_st::description
const char * description
Definition:
keyboard_mapping.h:27
Generated by
1.8.17