2018-11-16 00:31:39 +01:00
|
|
|
/*****************************************************************************\
|
|
|
|
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
|
|
|
|
This file is licensed under the Snes9x License.
|
|
|
|
For further information, consult the LICENSE file in the root directory.
|
|
|
|
\*****************************************************************************/
|
2010-09-25 17:46:12 +02:00
|
|
|
|
|
|
|
/***********************************************************************************
|
|
|
|
SNES9X for Mac OS (c) Copyright John Stiles
|
|
|
|
|
|
|
|
Snes9x for Mac OS X
|
|
|
|
|
2011-04-10 15:44:28 +02:00
|
|
|
(c) Copyright 2001 - 2011 zones
|
2010-09-25 17:46:12 +02:00
|
|
|
(c) Copyright 2002 - 2005 107
|
|
|
|
(c) Copyright 2002 PB1400c
|
|
|
|
(c) Copyright 2004 Alexander and Sander
|
|
|
|
(c) Copyright 2004 - 2005 Steven Seeger
|
|
|
|
(c) Copyright 2005 Ryan Vogt
|
2019-09-02 19:20:32 +02:00
|
|
|
(c) Copyright 2019 Michael Donald Buckley
|
2010-09-25 17:46:12 +02:00
|
|
|
***********************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _mac_keyboard_h_
|
|
|
|
#define _mac_keyboard_h_
|
|
|
|
|
2019-10-05 22:16:19 +02:00
|
|
|
#include "mac-controls.h"
|
2010-09-25 17:46:12 +02:00
|
|
|
|
2019-10-05 22:16:19 +02:00
|
|
|
#define MAC_NUM_KEYCODES 255
|
2010-09-25 17:46:12 +02:00
|
|
|
|
2019-10-19 16:08:27 +02:00
|
|
|
struct S9xButton {
|
|
|
|
int16 buttonCode;
|
|
|
|
int8 player;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct S9xButton keyCodes[MAC_NUM_KEYCODES];
|
2010-09-25 17:46:12 +02:00
|
|
|
|
|
|
|
void InitKeyboard (void);
|
|
|
|
void DeinitKeyboard (void);
|
2019-10-05 22:16:19 +02:00
|
|
|
|
2019-10-19 16:08:27 +02:00
|
|
|
bool SetKeyCode(int16 keyCode, S9xButtonCode button, int8 player, int16 *oldKeyCode, S9xButtonCode *oldButton, int8 *oldPlayer);
|
2019-11-10 22:02:21 +01:00
|
|
|
void ClearKeyCode(S9xButtonCode buttonCode, int8 player);
|
2010-09-25 17:46:12 +02:00
|
|
|
|
|
|
|
#endif
|