⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wince_cfg.h

📁 这个是延伸mame的在wince平台下的游戏模拟器的代码
💻 H
字号:
/* PocketCultMAME - MAME Emulator for PocketPC
   (c) Copyright 2006 Manuel Castrillo Mart韓ez

   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 2 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, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifndef wincecfg_h
#define wincecfg_h

// General definitions

#define OPTION_DISABLED	0
#define OPTION_ENABLED	1

#define OPTION_AUTO		0

// Orientation

#define	VIDORIENTATION_AUTO_90CW		0
#define VIDORIENTATION_AUTO_90CCW		1
#define VIDORIENTATION_PORTRAIT			2
#define VIDORIENTATION_LANDSCAPE_90CW	3
#define VIDORIENTATION_LANDSCAPE_90CCW	4

// Scaling

#define	SCALING_AUTO		OPTION_AUTO
#define	SCALING_NOSCALING	1
#define SCALING_ENTIRESCR	2

// Blit fx (vidFx)

#define FX_NONE			0
#define FX_SCANLINES	1
#define FX_STEPLINES	2

// Analog controls

#define ANALOG_DISABLED		0
#define ANALOG_TRACKSTYLUS	1
#define ANALOG_JOYPAD		2
#define ANALOG_JOYSTYLUS	3

// On screen buttons orientation

#define ONSCREENBUTTONS_HORIZONTAL	0
#define ONSCREENBUTTONS_VERTICAL	1

// Autofire

#define AUTOFIRE_MAX		0
#define AUTOFIRE_MED		1
#define AUTOFIRE_MIN		2
#define AUTOFIRE_DISABLED	3



// Configuration structure

typedef struct {

	// Video configuration

	int			vidOrientation;
	int			vidScaling;
	int			vidFx;
	int			vid2700G_lowRes;
	int			vidShowFPS;

	// Sound configuration

	int			sndEnabled;
	int			sndFreq;
	int			sndBits;
	int			sndStereo;

	// Input configuration

	int			inpAnalogControls;
	int			inpAnalogSensibility;
	int			inpAutofire;
	int			inpKeyUp;
	int			inpKeyUpCode;
	int			inpKeyDown;
	int			inpKeyDownCode;
	int			inpKeyLeft;
	int			inpKeyLeftCode;
	int			inpKeyRight;
	int			inpKeyRightCode;
	int			inpKeyA;		// Reserved for 'Fire A'
	int			inpKeyACode;
	int			inpKeyB;		// Reserved for 'Fire B'
	int			inpKeyBCode;
	int			inpKeyC;		// Reserved for 'Fire C'
	int			inpKeyCCode;
	int			inpKeyD;		// Reserved for 'Fire D'
	int			inpKeyDCode;
	int			inpKeyE;		// Reserved for 'Insert coin'
	int			inpKeyECode;
	int			inpKeyF;		// Reserved for 'Start'
	int			inpKeyFCode;
	int			inpKeyG;		// Reserved for 'Quit'
	int			inpKeyGCode;
	int			inpOnscreenButtonsOrientation;
	int			inpOnscreenRed;
	int			inpOnscreenGreen;
	int			inpOnscreenYellow;
} cfgStruct;


#ifdef __cplusplus
extern "C" {

// Declarations

void saveConfiguration( char *configFilename, cfgStruct &cfg );
void loadConfiguration( char *configFilename, cfgStruct &cfg );
void setInitialConfiguration(void);

}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -