mirror of
https://github.com/OpenEmu/PCSX2-Core.git
synced 2025-11-01 11:07:36 +00:00
63 lines
2.5 KiB
C
63 lines
2.5 KiB
C
// Copyright (c) 2022, OpenEmu Team
|
|
//
|
|
// Redistribution and use in source and binary forms, with or without
|
|
// modification, are permitted provided that the following conditions are met:
|
|
// * Redistributions of source code must retain the above copyright
|
|
// notice, this list of conditions and the following disclaimer.
|
|
// * Redistributions in binary form must reproduce the above copyright
|
|
// notice, this list of conditions and the following disclaimer in the
|
|
// documentation and/or other materials provided with the distribution.
|
|
// * Neither the name of the OpenEmu Team nor the
|
|
// names of its contributors may be used to endorse or promote products
|
|
// derived from this software without specific prior written permission.
|
|
//
|
|
// THIS SOFTWARE IS PROVIDED BY OpenEmu Team ''AS IS'' AND ANY
|
|
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
// DISCLAIMED. IN NO EVENT SHALL OpenEmu Team BE LIABLE FOR ANY
|
|
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#ifndef keymap_h
|
|
#define keymap_h
|
|
|
|
#include "PAD/Host/Global.h"
|
|
|
|
typedef struct
|
|
{
|
|
gamePadValues ps2key;
|
|
}keymap;
|
|
|
|
keymap ps2keymap[25]={
|
|
{PAD_UP}, // OEPS2ButtonUp,
|
|
{PAD_DOWN}, // OEPS2ButtonDown,
|
|
{PAD_LEFT}, // OEPS2ButtonLeft,
|
|
{PAD_RIGHT}, // OEPS2ButtonRight,
|
|
{PAD_TRIANGLE}, // OEPS2ButtonTriangle,
|
|
{PAD_CIRCLE}, // OEPS2ButtonCircle,
|
|
{PAD_CROSS}, // OEPS2ButtonCross,
|
|
{PAD_SQUARE}, // OEPS2ButtonSquare,
|
|
{PAD_L1}, // OEPS2ButtonL1,
|
|
{PAD_L2}, // OEPS2ButtonL2,
|
|
{PAD_L3}, // OEPS2ButtonL3,
|
|
{PAD_R1}, // OEPS2ButtonR1,
|
|
{PAD_R2}, // OEPS2ButtonR2,
|
|
{PAD_R3}, // OEPS2ButtonR3,
|
|
{PAD_START}, // OEPS2ButtonStart,
|
|
{PAD_SELECT}, // OEPS2ButtonSelect,
|
|
{}, // OEPS2ButtonAnalogMode,
|
|
{PAD_L_UP}, // OEPS2LeftAnalogUp,
|
|
{PAD_L_DOWN}, // OEPS2LeftAnalogDown,
|
|
{PAD_L_LEFT}, // OEPS2LeftAnalogLeft,
|
|
{PAD_L_RIGHT}, // OEPS2LeftAnalogRight,
|
|
{PAD_R_UP}, // OEPS2RightAnalogUp,
|
|
{PAD_R_DOWN}, // OEPS2RightAnalogDown,
|
|
{PAD_R_LEFT}, // OEPS2RightAnalogLeft,
|
|
{PAD_R_RIGHT}, // OEPS2RightAnalogRight
|
|
};
|
|
#endif /* keymap_h */
|