1 /* RetroArch - A frontend for libretro. 2 * Copyright (C) 2010-2014 - Hans-Kristian Arntzen 3 * Copyright (C) 2011-2017 - Daniel De Matteis 4 * 5 * RetroArch is free software: you can redistribute it and/or modify it under the terms 6 * of the GNU General Public License as published by the Free Software Found- 7 * ation, either version 3 of the License, or (at your option) any later version. 8 * 9 * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 10 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 11 * PURPOSE. See the GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License along with RetroArch. 14 * If not, see <http://www.gnu.org/licenses/>. 15 */ 16 17 #ifndef _MENU_INPUT_BIND_DIALOG_H 18 #define _MENU_INPUT_BIND_DIALOG_H 19 20 #include <stdint.h> 21 #include <stdlib.h> 22 23 #include <boolean.h> 24 25 #include <retro_common_api.h> 26 27 #include "menu_input.h" 28 29 RETRO_BEGIN_DECLS 30 31 enum menu_input_binds_ctl_state 32 { 33 MENU_INPUT_BINDS_CTL_BIND_NONE = 0, 34 MENU_INPUT_BINDS_CTL_BIND_SINGLE, 35 MENU_INPUT_BINDS_CTL_BIND_ALL 36 }; 37 38 typedef struct menu_input_ctx_bind 39 { 40 char *s; 41 size_t len; 42 } menu_input_ctx_bind_t; 43 44 typedef struct menu_input_ctx_bind_limits 45 { 46 unsigned min; 47 unsigned max; 48 } menu_input_ctx_bind_limits_t; 49 50 bool menu_input_key_bind_set_mode( 51 enum menu_input_binds_ctl_state state, void *data); 52 53 bool menu_input_key_bind_set_min_max(menu_input_ctx_bind_limits_t *lim); 54 55 RETRO_END_DECLS 56 57 #endif 58