/* PokeMini - Pokémon-Mini Emulator Copyright (C) 2009-2015 JustBurn 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 3 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, see . */ #include #include #include "PokeMini.h" #include "PokeMini_Win32.h" #include "Joystick_DInput.h" #include "Joystick.h" #include "Keyboard.h" static void ComboSetIndex(HWND hWndDlg, int nIDDlgItem, int index) { SendDlgItemMessage(hWndDlg, nIDDlgItem, CB_SETCURSEL, index, 0); } static int ComboGetIndex(HWND hWndDlg, int nIDDlgItem) { return (int)SendDlgItemMessage(hWndDlg, nIDDlgItem, CB_GETCURSEL, 0, 0); } // ----- Keyboard ----- static void ComboFillKeyAndSet(HWND hWndDlg, int nIDDlgItem, int index) { int i; for (i=0; i