2012-03-05 15:57:43 +00:00
|
|
|
/* SSNES - A Super Nintendo Entertainment System (SNES) Emulator frontend for libsnes.
|
|
|
|
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2012 - Daniel De Matteis
|
|
|
|
*
|
|
|
|
* Some code herein may be based on code found in BSNES.
|
|
|
|
*
|
|
|
|
* SSNES 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 Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* SSNES 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 SSNES.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2012-03-05 16:55:16 +00:00
|
|
|
#ifndef __SSNES_INPUT_LUTS_H
|
|
|
|
#define __SSNES_INPUT_LUTS_H
|
2012-03-05 15:57:43 +00:00
|
|
|
|
|
|
|
#include "../driver.h"
|
|
|
|
#include "../libsnes.hpp"
|
2012-03-05 16:55:16 +00:00
|
|
|
#include <stdint.h>
|
2012-03-05 15:57:43 +00:00
|
|
|
|
|
|
|
#if defined(__CELLOS_LV2__)
|
|
|
|
#include "../ps3/cellframework2/input/pad_input.h"
|
|
|
|
|
2012-03-05 16:55:16 +00:00
|
|
|
enum ps3_device_id
|
2012-03-05 15:57:43 +00:00
|
|
|
{
|
2012-03-05 16:55:16 +00:00
|
|
|
PS3_DEVICE_ID_JOYPAD_CIRCLE = 0,
|
|
|
|
PS3_DEVICE_ID_JOYPAD_CROSS,
|
|
|
|
PS3_DEVICE_ID_JOYPAD_TRIANGLE,
|
|
|
|
PS3_DEVICE_ID_JOYPAD_SQUARE,
|
|
|
|
PS3_DEVICE_ID_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05 15:57:43 +00:00
|
|
|
|
|
|
|
#elif defined(_XBOX)
|
|
|
|
#endif
|
|
|
|
|
2012-03-05 22:40:18 +00:00
|
|
|
extern uint64_t ssnes_default_keybind_lut[SSNES_FIRST_META_KEY];
|
|
|
|
extern uint64_t ssnes_platform_keybind_lut[SSNES_LAST_PLATFORM_KEY];
|
2012-03-05 15:57:43 +00:00
|
|
|
|
2012-03-05 22:32:38 +00:00
|
|
|
const char *ssnes_input_find_platform_key_label(uint64_t joykey);
|
|
|
|
uint64_t ssnes_input_find_previous_platform_key(uint64_t joykey);
|
|
|
|
uint64_t ssnes_input_find_next_platform_key(uint64_t joykey);
|
2012-03-05 22:01:01 +00:00
|
|
|
|
2012-03-05 15:57:43 +00:00
|
|
|
#endif
|
2012-03-05 16:55:16 +00:00
|
|
|
|