Add rayman2 source files

This commit is contained in:
2024-09-18 02:33:44 +08:00
parent bcc093f8ed
commit fb036c54fd
14339 changed files with 2596224 additions and 0 deletions

View File

@@ -0,0 +1,169 @@
#if !defined(__IPT_ERR_H_)
#define __IPT_ERR_H_
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
#include "IPT_Ver.h"
/***************************************/
/**** Error macros (using ACPerror) ****/
/***************************************/
#define M_IPTFatalError(ErrorNum) \
{ \
if (ErrorNum>E_uwIPTFatalErr&&ErrorNum<E_uwIPTStartOfWarning) \
{ \
Erm_M_ClearLastError(C_ucErmDefaultChannel);\
Erm_M_UpdateLastError(IPT,C_ucErmDefaultChannel,ErrorNum,C_lErmNoDebugData,C_ucErmOpenInfoWindow,C_ucAllowStopForDebug, NULL);\
} \
else \
{ \
Erm_M_ClearLastError(C_ucErmDefaultChannel);\
Erm_M_UpdateLastError(IPT,C_ucErmDefaultChannel,E_uwIPTFatalErrorNotAFatalError,C_lErmNoDebugData,C_ucErmOpenInfoWindow,C_ucAllowStopForDebug, NULL);\
} \
}
#define M_IPTInformationError(ErrorNum) \
{ \
if (ErrorNum>E_uwIPTStartOfInformationWarning&&ErrorNum<E_uwIPTErrNumber) \
{ \
Erm_M_UpdateLastError(IPT,C_ucErmDefaultChannel,ErrorNum,C_lErmNoDebugData,C_ucErmNoOpenInfoWindow,C_ucNeverStopForDebug, NULL);\
Erm_M_ClearLastError(C_ucErmDefaultChannel);\
} \
else \
{ \
M_IPTFatalError(E_uwIPTInformationErrorIsNotAInformationError); \
} \
}
#define M_IPTWarningError(ErrorNum) \
{ \
if (ErrorNum>E_uwIPTStartOfWarning&&ErrorNum<E_uwIPTStartOfInformationWarning) \
{ \
Erm_M_UpdateLastError(IPT,C_ucErmDefaultChannel,ErrorNum,C_lErmNoDebugData,C_ucErmOpenInfoWindow,C_ucAllowStopForDebug, NULL);\
} \
else \
{ \
M_IPTFatalError(E_uwIPTWarningErrorIsNotAWarningError); \
} \
}
#define __FATAL_ERR_INPUT__
#define __INFORMATION_ERR_INPUT__ /**** Treat as a level 1 warning ****/
#define __WARNING_ERR_INPUT__ /**** Treat as a level 2 warning ****/
enum e_uwIPTErrNumber
{
E_uwIPTFatalErr,
#if defined(__FATAL_ERR_INPUT__)
/**** Error's errors ****/
E_uwIPTFatalErrorNotAFatalError,
E_uwIPTInformationErrorIsNotAInformationError,
E_uwIPTWarningErrorIsNotAWarningError,
/**** Memory's errors ****/
E_uwIPT_AllocNewKeyAction,
E_uwIPT_AllocNewKeyWord,
/**** Script's errors ****/
E_uwIPT_NewKeyActionAlreadyExist,
E_uwIPT_UnknownKeyValue,
E_uwIPT_UnknownActionValue,
E_uwIPT_AlreadyActivateAsAJoystick,
E_uwIPT_AlreadyActivateAsAPad,
E_uwIPT_TooMuchKeyDefine,
E_uwIPT_NoMemory,
/**** Analyse errors ****/
E_uwIPT_UnknownActionAnalysis,
E_uwIPTMemoryPlace,
#endif /*__FATAL_ERR_INPUT__*/
E_uwIPTStartOfWarning,
#if defined(__WARNING_ERR_INPUT__)
#endif /*__WARNING_ERR_INPUT__*/
E_uwIPTStartOfInformationWarning,
#if defined(__INFORMATION_ERR_INPUT__)
#endif /*__INFORMATION_ERR_INPUT__*/
E_uwIPTErrNumber,
};
/*------------------*/
/* Global Variables*/
/*------------------*/
#undef EXTERN
#undef extern
#undef LOCAL
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern /*external declaration*/
#define LOCAL /*replace by nothing : we have to declare*/
#else /* D_IPT_Input_VariableDefine */
#define EXTERN /*replace by nothing : we have to declare*/
#define LOCAL /*replace by nothing : we have to declare*/
#endif /* D_IPT_Input_VariableDefine */
EXTERN unsigned char g_ucIPTModuleId /* number of identification of the Game module*/
#if defined(D_IPT_Input_VariableDefine)
= C_ucModuleNotInitialized
#endif /* D_IPT_Input_VariableDefine */
;
#if defined(__ERROR_STRINGS__)
EXTERN CPA_EXPORT char * g_a_szIPTInformationModule []
#if defined(D_IPT_Input_VariableDefine) && !defined(CPA_WANTS_IMPORT)
= {C_szIPTVersion, C_szIPTFullName, C_szIPTDate}
#endif /* D_IPT_Input_VariableDefine && CPA_WANTS_IMPORT */
;
EXTERN char * g_szIPTModuleName /* Obliged syntax 'sz'+[Abbreviation of ModuleName]+'ModuleName'*/
#if defined(D_IPT_Input_VariableDefine)
= {"Input"}
#endif /* D_IPT_Input_VariableDefine */
;
EXTERN tdstErrorMsg g_a_stIPTTabErr[] /* Obliged syntax 'a_sz'+[Abbreviation of ModuleName]+'TabErr'*/
#if defined(D_IPT_Input_VariableDefine)
=
{
#if defined(__FATAL_ERR_INPUT__)
/**** Error's errors ****/
E_uwIPTFatalErrorNotAFatalError,"M_IPTFatalError : Try to raise a warning or an information",
E_uwIPTInformationErrorIsNotAInformationError,"M_IPTInformationError : Try to raise a fatal or a warning",
E_uwIPTWarningErrorIsNotAWarningError,"M_IPTWarningError : Try to raise a fatal or a information",
/**** Memory's errors ****/
E_uwIPT_AllocNewKeyAction,"IPT_fn_eAddKeyScriptCallBack : Can not alloc",
E_uwIPT_AllocNewKeyWord,"IPT_fn_hAllocKeyWord : Can not alloc keyword",
/**** Script's errors ****/
E_uwIPT_NewKeyActionAlreadyExist,"IPT_fn_eAddKeyScriptCallBack : Key action already exist",
E_uwIPT_UnknownKeyValue,"Unknown key string",
E_uwIPT_UnknownActionValue,"IPT_fn_eAddKeyActionScriptCallBack : Unknown action",
E_uwIPT_AlreadyActivateAsAJoystick,"IPT_fn_eActivateDeviceScriptCallBack : Device already activate as a joystick",
E_uwIPT_AlreadyActivateAsAPad,"IPT_fn_eActivateDeviceScriptCallBack : Device already activate as a pad",
E_uwIPT_TooMuchKeyDefine,"IPT_fn_eKeyDefineScriptCallBack : Too much key define",
E_uwIPT_NoMemory,"Not enought memory",
E_uwIPTMemoryPlace,"IPT_fn_p_vAlloc : Not enought space",
/**** Analyse errors ****/
E_uwIPT_UnknownActionAnalysis,"IPT_fn_bIsKeyWordValid : Bad keyword",
#endif /*__FATAL_ERR_INPUT__*/
#ifdef __WARNING_ERR_INPUT__
#endif /*__WARNING_ERR_INPUT__*/
#ifdef __INFORMATION_ERR_INPUT__
#endif /*__INFORMATION_ERR_INPUT__*/
0xffff,"\0"/*fin*/
}
#endif /* D_IPT_Input_VariableDefine */
;
#endif /* __ERROR_STRINGS__ */
#undef EXTERN
#undef extern
#endif /* !__IPT_ERR_H_ */

View File

@@ -0,0 +1,81 @@
/*=========================================================================
* IPT_Anal.h :
* Analyse entry
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__IPT_Anal_h__)
#define __IPT_Anal_h__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/****************************************/
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine*/
#if defined (__cplusplus)
extern "C"
{
#endif /* __cplusplus */
extern CPA_EXPORT void IPT_fn_vReadInput(void);
extern CPA_EXPORT unsigned char IPT_fn_bIsJustValidated(IPT_tdxHandleToEntryElement _hEntryElement);
extern CPA_EXPORT unsigned char IPT_fn_bIsValidated(IPT_tdxHandleToEntryElement _hEntryElement);
extern CPA_EXPORT unsigned char IPT_fn_bIsJustInvalidated(IPT_tdxHandleToEntryElement _hEntryElement);
extern CPA_EXPORT unsigned char IPT_fn_bIsInvalidated(IPT_tdxHandleToEntryElement _hEntryElement);
extern CPA_EXPORT long IPT_fn_lHowManyFrame(IPT_tdxHandleToEntryElement _hEntryElement);
extern CPA_EXPORT unsigned long IPT_fn_ulHowManyAbsoluteFrame(IPT_tdxHandleToEntryElement _hEntryElement);
extern CPA_EXPORT long IPT_fn_lGetAnalogicValue(IPT_tdxHandleToEntryElement _hEntryElement);
/*AR980629 For IPT recorder*/
/*extern char IPT_DemoMode;
#define IPT_M_DemoStopMode 0
#define IPT_M_DemoRecordMode 1
#define IPT_M_DemoPlayMode 2
#define IPT_M_IsDemoStopMode (IPT_DemoMode == IPT_M_DemoStopMode)
#define IPT_M_IsDemoRecordingMode (IPT_DemoMode == IPT_M_DemoRecordMode)
#define IPT_M_IsDemoPlayingMode (IPT_DemoMode == IPT_M_DemoPlayMode)
#define IPT_M_NextDemoEntry NbDemoEntry++
#define C_NbAction 200 /* --> 200 bits*/
/*#define C_NbCodedEntry 7 /* 200 bits / 32 bits (for unsigned long type).*/
/*#define C_MaxDemoEntry 2000
#define IPT_M_DemoFinished (IPT_M_IsDemoPlayingMode)&&((NbDemoEntry>=C_MaxDemoEntry)/*||(g_st_3DOS_EntryActions.hIPTRecord->lState==1)*//*)*/
/*#define U64_DEMO_RECORDER // for tests only AR980629*/
extern void IPT_fnvRecordDemoMode();
extern void IPT_fnvStopDemoMode();
extern void IPT_fnvPlayDemoMode();
#if defined (__cplusplus)
}
#endif /* __cplusplus */
#undef EXTERN
#undef extern
#endif /* __IPT_Anal_h__ */

View File

@@ -0,0 +1,53 @@
/*=========================================================================
* IPT_Bin.h :
* binary files functions
*
* (c) Ubi Studios 1998
*=======================================================================*/
#if !defined (__IPT_Bin_H__)
#define __IPT_Bin_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/****************************************/
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine*/
#if defined (__cplusplus)
extern "C"
{
#endif /* __cplusplus */
extern CPA_EXPORT void IPT_fn_vSaveBinaryFile(char *_p_szFileName,IPT_tdxHandleToEntryElement *dExchangeArray,unsigned long ulExchangeArraySize);
extern CPA_EXPORT void IPT_fn_vLoadBinaryFile(char *_p_szFileName,HINSTANCE hInstance, HWND hWindow,GLD_tdhDevice _tdGLDDeviceHandle,IPT_tdxHandleToEntryElement *dExchangeArray,unsigned long ulExchangeArraySize);
extern CPA_EXPORT unsigned char IPT_fn_bIsBinaryFileLoaded(void);
#if defined (__cplusplus)
}
#endif /* __cplusplus */
#undef EXTERN
#undef extern
#endif /* __IPT_Edit_H__ */

View File

@@ -0,0 +1,24 @@
#if !defined(__IPT_CPA_H__)
#define __IPT_CPA_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
#if defined (WIN32)
#include "wtypes.h"
#include "winuser.h"
#include "string.h"
#endif /* WIN32 */
#include "ACP_Base.h"
#include "INO.H"
#include "LST.h"
#include "SCR.h"
#include "MMG.h"
#include "ERM.h"
#endif /* __IPT_CPA_H__ */

View File

@@ -0,0 +1,48 @@
/*=========================================================================
* IPT_Def.h :
* Macro and defnition
*
* (c) Ubi Studios 1997
*=======================================================================*/
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
#define IPT_C_FALSE 0
#define IPT_C_TRUE 1
#define IPT_C_InvalideDevice 0
#define IPT_C_ValideDevice 1
#define IPT_C_ActivateDevice 2
#define IPT_C_ActivatePadDevice 3
#define IPT_C_ActivateJoystickDevice 4
#define IPT_C_ActivateMouseDevice 5
#define IPT_C_ACP_HistoricSize 2
#define IPT_C_MaxLineCommand 78
#define IPT_C_MaxNumberOfParameters 10
#define IPT_C_NumberOfHistoricCommand 10
#define IPT_C_NoCommand 0
#define IPT_C_ValidCommand 1
#define IPT_C_QuitCommandMode 2
#define IPT_C_InvalidCommand -1
#define IPT_C_BadNumberOfParameters -2
/*#define IPT_C_AsciiBackSpace -1*/
/*#define IPT_C_AsciiEnter -2*/
#define IPT_C_Duplicate 0
#define IPT_C_Exchange 1
#define IPT_C_NoDuplicate 2
#define IPT_C_UnknownKeyBoardType 0
#define IPT_C_AZERTYKeyBoardType 1
#define IPT_C_QWERTYKeyBoardType 2
#define IPT_C_MaxNumberOfPad 16 /* See also in IPT_KDef.h */

View File

@@ -0,0 +1,52 @@
/*=========================================================================
* IPT_Edit.h :
* Editor functions
*
* (c) Ubi Studios 1998
*=======================================================================*/
#if !defined (__IPT_Edit_H__)
#define __IPT_Edit_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/****************************************/
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine*/
#if defined (__cplusplus)
extern "C"
{
#endif /* __cplusplus */
extern CPA_EXPORT void IPT_fn_vInsertAction(char *_p_szName,IPT_tdxHandleToEntryElement _hEntryElement);
extern CPA_EXPORT void IPT_fn_vDeleteAction(char *_p_szName);
#if defined (__cplusplus)
}
#endif /* __cplusplus */
#undef EXTERN
#undef extern
#endif /* __IPT_Edit_H__ */

View File

@@ -0,0 +1,28 @@
/*=========================================================================
* IPT_Hdl.h : Structure des fonctions d'entr<74>es
*
* Version 1.0
* Creation date 01/04/97
* Revision date
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__IPT_Hdl_H__)
#define __IPT_Hdl_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/***********************/
/**** Handle define ****/
/***********************/
typedef struct IPT_tdstEntryElement_ * IPT_tdxHandleToEntryElement;
typedef struct IPT_tdstInput_ * IPT_tdxHandleToInput;
typedef struct IPT_tdstKeyWordElement_ * IPT_tdxHandleToKeyWordElement;
typedef struct IPT_tdstHistoricElement_ * IPT_tdxHandleToHistoricElement;
#endif /* __IPT_Hdl_H__ */

View File

@@ -0,0 +1,56 @@
/*=========================================================================
* IPT_Hist.h :
* Historic
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined (__IPT_Hist_H__)
#define __IPT_Hist_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/****************************************/
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine*/
#if defined (__cplusplus)
extern "C"
{
#endif /* __cplusplus */
extern CPA_EXPORT unsigned long IPT_fn_ulSizeOfHistoric();
extern CPA_EXPORT unsigned char IPT_fn_bIsEmptyHistoricElement(unsigned long _ulElementNumber);
extern CPA_EXPORT unsigned char IPT_fn_bIsKeyboardHistoricElement(unsigned long _ulElementNumber);
extern CPA_EXPORT unsigned char IPT_fn_bIsPadHistoricElement(unsigned long _ulElementNumber);
#if defined (__cplusplus)
}
#endif /* __cplusplus */
void IPT_fn_vActualizeHistoric();
#undef EXTERN
#undef extern
#endif /* __IPT_Hist_H__ */

View File

@@ -0,0 +1,642 @@
/*=========================================================================
* IPT_KDef.h : xchange structure for script
*
* Version 1.0
* Creation date 02/04/97
* Revision date
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__IPT_KDef_H__)
#define __IPT_KDef_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /* CPA_WANTS_IMPORT || CPA_WANTS_EXPORT */
#endif /* CPA_EXPORT */
/****************************************/
/***** Structures definitions *** */
typedef struct IPT_tdstScriptValue_ * IPT_tdxHandleToScriptValue;
#if defined(D_IPT_Input_StructureDefine)
struct IPT_tdstScriptValue_
{
char *zsKeyName;
signed short swKeyValue;
};
struct IPT_tdstConvertValue_
{
signed short swAZERTYKeyValue;
signed short swQWERTYKeyValue;
};
#endif /* D_IPT_Input_StructureDefine */
/***** Enums declarations *** */
enum IPT_E_KeyWord_
{
IPT_E_KeyWord_And = ((signed short)0xf001),
IPT_E_KeyWord_Or,
IPT_E_KeyWord_Not,
IPT_E_KeyWord_KeyJustPressed,
IPT_E_KeyWord_KeyJustReleased,
IPT_E_KeyWord_KeyPressed,
IPT_E_KeyWord_KeyReleased,
IPT_E_KeyWord_ActionJustValidated,
IPT_E_KeyWord_ActionJustInvalidated,
IPT_E_KeyWord_ActionValidated,
IPT_E_KeyWord_ActionInvalidated,
IPT_E_KeyWord_PadJustPressed,
IPT_E_KeyWord_PadJustReleased,
IPT_E_KeyWord_PadPressed,
IPT_E_KeyWord_PadReleased,
IPT_E_KeyWord_JoystickAxeValue,
IPT_E_KeyWord_JoystickJustPressed,
IPT_E_KeyWord_JoystickJustReleased,
IPT_E_KeyWord_JoystickPressed,
IPT_E_KeyWord_JoystickReleased,
IPT_E_KeyWord_JoystickOrPadJustPressed,
IPT_E_KeyWord_JoystickOrPadJustReleased,
IPT_E_KeyWord_JoystickOrPadPressed,
IPT_E_KeyWord_JoystickOrPadReleased,
IPT_E_KeyWord_Sequence,
IPT_E_KeyWord_SequenceKey,
IPT_E_KeyWord_SequenceKeyEnd,
IPT_E_KeyWord_SequencePad,
IPT_E_KeyWord_SequencePadEnd,
IPT_E_NumberOfKeyWord
};
enum IPT_E_DeviceEvent_
{
IPT_E_FirstDeviceEvent = (0x01),
IPT_E_KeyboardDeviceEvent = IPT_E_FirstDeviceEvent,
IPT_E_Pad00DeviceEvent,
IPT_E_Pad01DeviceEvent,
IPT_E_Pad02DeviceEvent,
IPT_E_Pad03DeviceEvent,
IPT_E_Pad04DeviceEvent,
IPT_E_Pad05DeviceEvent,
IPT_E_Pad06DeviceEvent,
IPT_E_Pad07DeviceEvent,
IPT_E_Pad08DeviceEvent,
IPT_E_Pad09DeviceEvent,
IPT_E_Pad10DeviceEvent,
IPT_E_Pad11DeviceEvent,
IPT_E_Pad12DeviceEvent,
IPT_E_Pad13DeviceEvent,
IPT_E_Pad14DeviceEvent,
IPT_E_Pad15DeviceEvent,
IPT_E_NumberOfDeviceEvent
};
enum IPT_E_PadEvent_
{
IPT_E_FirstPadAction = 0x00,
IPT_E_PadUp = IPT_E_FirstPadAction,
IPT_E_PadDown,
IPT_E_PadLeft,
IPT_E_PadRight,
IPT_E_JoyXValue,
IPT_E_JoyYValue,
IPT_E_JoyZValue,
IPT_E_JoyRValue,
IPT_E_JoyUValue,
IPT_E_JoyVValue,
IPT_E_PadFirstButton,
IPT_E_PadButton0 = IPT_E_PadFirstButton,
IPT_E_PadButton1,
IPT_E_PadButton2,
IPT_E_PadButton3,
IPT_E_PadButton4,
IPT_E_PadButton5,
/* ANNECY AV {*/
/*
IPT_E_PadButton6,
IPT_E_PadButton7,
IPT_E_PadButton8,
IPT_E_PadButton9,
IPT_E_PadButton10,
IPT_E_PadButton11,
IPT_E_PadButton12,
IPT_E_PadButton13,
IPT_E_PadButton14,
IPT_E_PadButton15,
IPT_E_PadButton16,
IPT_E_PadButton17,
IPT_E_PadButton18,
IPT_E_PadButton19,
IPT_E_PadButton20,
IPT_E_PadButton21,
IPT_E_PadButton22,
IPT_E_PadButton23,
IPT_E_PadButton24,
IPT_E_PadButton25,
IPT_E_PadButton26,
IPT_E_PadButton27,
IPT_E_PadButton28,
IPT_E_PadButton29,
IPT_E_PadButton30,
IPT_E_PadButton31,
IPT_E_PadLastButton = IPT_E_PadButton31,
*/
IPT_E_PadLastButton = IPT_E_PadButton5,
/* END ANNECY AV }*/
IPT_E_JoyFirstButton,
IPT_E_JoyButton0 = IPT_E_JoyFirstButton,
IPT_E_JoyButton1,
IPT_E_JoyButton2,
IPT_E_JoyButton3,
IPT_E_JoyButton4,
IPT_E_JoyButton5,
/* ANNECY AV {*/
#ifdef U64
IPT_E_JoyButton6,
IPT_E_JoyButton7,
IPT_E_JoyButton8,
IPT_E_JoyButton9,
IPT_E_JoyButton10,
IPT_E_JoyButton11,
IPT_E_JoyButton12,
IPT_E_JoyButton13,
IPT_E_JoyButton14,
IPT_E_JoyButton15,
#endif
#ifdef DREAM
IPT_E_JoyButton6,
IPT_E_JoyButton7,
IPT_E_JoyButton8,
IPT_E_JoyButton9,
IPT_E_JoyButton10,
IPT_E_JoyButton11,
IPT_E_JoyButton12,
IPT_E_JoyButton13,
IPT_E_JoyButton14,
IPT_E_JoyButton15,
IPT_E_JoyButton16,
IPT_E_JoyButton17,
#endif /* DREAM */
/* ANNECY AV {*/
/*
IPT_E_JoyButton16,
IPT_E_JoyButton17,
IPT_E_JoyButton18,
IPT_E_JoyButton19,
IPT_E_JoyButton20,
IPT_E_JoyButton21,
IPT_E_JoyButton22,
IPT_E_JoyButton23,
IPT_E_JoyButton24,
IPT_E_JoyButton25,
IPT_E_JoyButton26,
IPT_E_JoyButton27,
IPT_E_JoyButton28,
IPT_E_JoyButton29,
IPT_E_JoyButton30,
IPT_E_JoyButton31,
IPT_E_JoyLastButton = IPT_E_JoyButton31,
*/
#ifdef U64
IPT_E_JoyLastButton = IPT_E_JoyButton15 ,
#else
#ifdef DREAM
IPT_E_JoyLastButton = IPT_E_JoyButton17,
#else
IPT_E_JoyLastButton = IPT_E_JoyButton5 ,
#endif /* DREAMCAST */
#endif
/* END ANNECY AV }*/
IPT_E_NumberOfPadAndJoyAction,
};
enum IPT_E_HistoricSate_
{
IPT_E_Stopped = 0x00,
IPT_E_Stopping,
IPT_E_InProgress,
};
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine */
#if (!defined(U64))
EXTERN struct IPT_tdstConvertValue_ IPT_g_ConvertAZERTYtoQWERTY[]
#if defined(D_IPT_Input_VariableDefine)
=
{
C_ucKey_A,C_ucKey_Q,
C_ucKey_Z,C_ucKey_W,
C_ucKey_Q,C_ucKey_A,
C_ucKey_M,C_ucKey_PVIRG,
C_ucKey_W,C_ucKey_Z,
C_ucKey_VIRG,C_ucKey_M,
C_ucKey_PVIRG,C_ucKey_VIRG,
-1,-1
}
#endif /* D_IPT_Input_VariableDefine */
;
EXTERN struct IPT_tdstScriptValue_ IPT_g_hScriptKeyValue[]
#if defined(D_IPT_Input_VariableDefine)
=
{
"<EFBFBD>",C_ucKey_SQUARE,
"1",C_ucKey_1,
"2",C_ucKey_2,
"3",C_ucKey_3,
"4",C_ucKey_4,
"5",C_ucKey_5,
"6",C_ucKey_6,
"7",C_ucKey_7,
"8",C_ucKey_8,
"9",C_ucKey_9,
"0",C_ucKey_0,
")",C_ucKey_END_BRACET,
"=",C_ucKey_EQUAL,
"A",C_ucKey_A,
"Z",C_ucKey_Z,
"E",C_ucKey_E,
"R",C_ucKey_R,
"T",C_ucKey_T,
"Y",C_ucKey_Y,
"U",C_ucKey_U,
"I",C_ucKey_I,
"O",C_ucKey_O,
"P",C_ucKey_P,
"^",C_ucKey_EXP,
"$",C_ucKey_DOLLAR,
"Q",C_ucKey_Q,
"S",C_ucKey_S,
"D",C_ucKey_D,
"F",C_ucKey_F,
"G",C_ucKey_G,
"H",C_ucKey_H,
"J",C_ucKey_J,
"K",C_ucKey_K,
"L",C_ucKey_L,
"M",C_ucKey_M,
"%",C_ucKey_PERCENT,
"*",C_ucKey_MUL,
"<",C_ucKey_INF,
"W",C_ucKey_W,
"X",C_ucKey_X,
"C",C_ucKey_C,
"V",C_ucKey_V,
"B",C_ucKey_B,
"N",C_ucKey_N,
",",C_ucKey_VIRG,
";",C_ucKey_PVIRG,
":",C_ucKey_PP,
"!",C_ucKey_NOT,
"F1",C_ucKey_F1,
"F2",C_ucKey_F2,
"F3",C_ucKey_F3,
"F4",C_ucKey_F4,
"F5",C_ucKey_F5,
"F6",C_ucKey_F6,
"F7",C_ucKey_F7,
"F8",C_ucKey_F8,
"F9",C_ucKey_F9,
"F10",C_ucKey_F10,
"F11",C_ucKey_F11,
"F12",C_ucKey_F12,
"PrintScreen",C_ucKey_SYSTEM,
"Scroll",C_ucKey_SCROLL,
"Pause",C_ucKey_PAUSE,
" ",C_ucKey_SPACE,
"Esc",C_ucKey_ESC,
"Tab",C_ucKey_TAB,
"Caps",C_ucKey_CAPSLOCK,
"LeftShift",C_ucKey_LSHIFT,
"RightShift",C_ucKey_RSHIFT,
"LeftCtrl",C_ucKey_LCTRL,
"RightCtrl",C_ucKey_RCTRL,
"LeftAlt",C_ucKey_LALT,
"RightAlt",C_ucKey_RALT,
"Enter",C_ucKey_ENTER,
"Back",C_ucKey_BACK,
"Ins",C_ucKey_INS,
"Del",C_ucKey_DEL,
"Home",C_ucKey_HOME,
"End",C_ucKey_END,
"Prior",C_ucKey_PRIOR,
"Next",C_ucKey_NEXT,
"Up",C_ucKey_UP,
"Down",C_ucKey_DOWN,
"Left",C_ucKey_LEFT,
"Right",C_ucKey_RIGHT,
"VerrNum",C_ucKey_NUMLOCK,
"Pad/",C_ucKey_PAD_DIV,
"Pad*",C_ucKey_PAD_MUL,
"Pad-",C_ucKey_PAD_SUB,
"Pad+",C_ucKey_PAD_ADD,
"Pad.",C_ucKey_PAD_POINT,
"Pad0",C_ucKey_PAD_0,
"Pad1",C_ucKey_PAD_1,
"Pad2",C_ucKey_PAD_2,
"Pad3",C_ucKey_PAD_3,
"Pad4",C_ucKey_PAD_4,
"Pad5",C_ucKey_PAD_5,
"Pad6",C_ucKey_PAD_6,
"Pad7",C_ucKey_PAD_7,
"Pad8",C_ucKey_PAD_8,
"Pad9",C_ucKey_PAD_9,
"PadEnter",C_ucKey_PAD_ENTER,
"--Last--",-1
}
#endif /* D_IPT_Input_VariableDefine */
;
#endif /* !U64 */
EXTERN struct IPT_tdstScriptValue_ IPT_g_hScriptPadValue[]
#if defined(D_IPT_Input_VariableDefine)
=
{
#ifdef DREAM
"PadUp" ,IPT_E_PadUp,
"PadDown" ,IPT_E_PadDown,
"PadLeft" ,IPT_E_PadLeft,
"PadRight" ,IPT_E_PadRight,
"PadXValue" ,IPT_E_JoyXValue,
"PadYValue" ,IPT_E_JoyYValue,
"PadZValue" ,IPT_E_JoyZValue,
"PadRValue" ,IPT_E_JoyRValue,
"PadUValue" ,IPT_E_JoyUValue,
"PadVValue" ,IPT_E_JoyVValue,
"A_Button" ,IPT_E_JoyButton2,
"B_Button" ,IPT_E_JoyButton1,
"C_Button" ,IPT_E_JoyButton0,
"X_Button" ,IPT_E_JoyButton10,
"Y_Button" ,IPT_E_JoyButton9,
"Z_Button" ,IPT_E_JoyButton8,
"L_Button" ,IPT_E_JoyButton17,
"R_Button" ,IPT_E_JoyButton16,
"Start_Button",IPT_E_JoyButton3,
"Cross_Up" ,IPT_E_JoyButton4,
"Cross_Down" ,IPT_E_JoyButton5,
"Cross_Left" ,IPT_E_JoyButton6,
"Cross_Right",IPT_E_JoyButton7,
#else
"PadUp" ,IPT_E_PadUp,
"PadDown" ,IPT_E_PadDown,
"PadLeft" ,IPT_E_PadLeft,
"PadRight" ,IPT_E_PadRight,
"PadXValue" ,IPT_E_JoyXValue,
"PadYValue" ,IPT_E_JoyYValue,
"PadZValue" ,IPT_E_JoyZValue,
"PadRValue" ,IPT_E_JoyRValue,
"PadUValue" ,IPT_E_JoyUValue,
"PadVValue" ,IPT_E_JoyVValue,
"PadButton0" ,IPT_E_PadButton0,
"PadButton1" ,IPT_E_PadButton1,
"PadButton2" ,IPT_E_PadButton2,
"PadButton3" ,IPT_E_PadButton3,
"PadButton4" ,IPT_E_PadButton4,
"PadButton5" ,IPT_E_PadButton5,
/* ANNECY AV {*/
/*
"PadButton6" ,IPT_E_PadButton6,
"PadButton7" ,IPT_E_PadButton7,
"PadButton8" ,IPT_E_PadButton8,
"PadButton9" ,IPT_E_PadButton9,
"PadButton10",IPT_E_PadButton10,
"PadButton11",IPT_E_PadButton11,
"PadButton12",IPT_E_PadButton12,
"PadButton13",IPT_E_PadButton13,
"PadButton14",IPT_E_PadButton14,
"PadButton15",IPT_E_PadButton15,
"PadButton16",IPT_E_PadButton16,
"PadButton17",IPT_E_PadButton17,
"PadButton18",IPT_E_PadButton18,
"PadButton19",IPT_E_PadButton19,
"PadButton20",IPT_E_PadButton20,
"PadButton21",IPT_E_PadButton21,
"PadButton22",IPT_E_PadButton22,
"PadButton23",IPT_E_PadButton23,
"PadButton24",IPT_E_PadButton24,
"PadButton25",IPT_E_PadButton25,
"PadButton26",IPT_E_PadButton26,
"PadButton27",IPT_E_PadButton27,
"PadButton28",IPT_E_PadButton28,
"PadButton29",IPT_E_PadButton29,
"PadButton30",IPT_E_PadButton30,
"PadButton31",IPT_E_PadButton31,
*/
/* END ANNECY AV }*/
"JoyButton0" ,IPT_E_JoyButton0,
"JoyButton1" ,IPT_E_JoyButton1,
"JoyButton2" ,IPT_E_JoyButton2,
"JoyButton3" ,IPT_E_JoyButton3,
"JoyButton4" ,IPT_E_JoyButton4,
"JoyButton5" ,IPT_E_JoyButton5,
/* ANNECY AV {*/
#ifdef U64
"JoyButton6" ,IPT_E_JoyButton6,
"JoyButton7" ,IPT_E_JoyButton7,
"JoyButton8" ,IPT_E_JoyButton8,
"JoyButton9" ,IPT_E_JoyButton9,
"JoyButton10",IPT_E_JoyButton10,
"JoyButton11",IPT_E_JoyButton11,
"JoyButton12",IPT_E_JoyButton12,
"JoyButton13",IPT_E_JoyButton13,
"JoyButton14",IPT_E_JoyButton14,
"JoyButton15",IPT_E_JoyButton15,
#endif
/* ANNECY AV {*/
/*
"JoyButton16",IPT_E_JoyButton16,
"JoyButton17",IPT_E_JoyButton17,
"JoyButton18",IPT_E_JoyButton18,
"JoyButton19",IPT_E_JoyButton19,
"JoyButton20",IPT_E_JoyButton20,
"JoyButton21",IPT_E_JoyButton21,
"JoyButton22",IPT_E_JoyButton22,
"JoyButton23",IPT_E_JoyButton23,
"JoyButton24",IPT_E_JoyButton24,
"JoyButton25",IPT_E_JoyButton25,
"JoyButton26",IPT_E_JoyButton26,
"JoyButton27",IPT_E_JoyButton27,
"JoyButton28",IPT_E_JoyButton28,
"JoyButton29",IPT_E_JoyButton29,
"JoyButton30",IPT_E_JoyButton30,
"JoyButton31",IPT_E_JoyButton31,
*/
#endif /* DREAM */
/* END ANNECY AV }*/
"--Last--",-1
}
#endif /* D_IPT_Input_VariableDefine */
;
EXTERN unsigned long IPT_g_ulPadAndJoyButtonFlag[]
#if defined(D_IPT_Input_VariableDefine)
=
{
C_ulButtonFlag1,
C_ulButtonFlag2,
C_ulButtonFlag3,
C_ulButtonFlag4,
C_ulButtonFlag5,
C_ulButtonFlag6,
C_ulButtonFlag7,
C_ulButtonFlag8,
C_ulButtonFlag9,
C_ulButtonFlag10,
C_ulButtonFlag11,
C_ulButtonFlag12,
C_ulButtonFlag13,
C_ulButtonFlag14,
C_ulButtonFlag15,
C_ulButtonFlag16,
C_ulButtonFlag17,
C_ulButtonFlag18,
C_ulButtonFlag19,
C_ulButtonFlag20,
C_ulButtonFlag21,
C_ulButtonFlag22,
C_ulButtonFlag23,
C_ulButtonFlag24,
C_ulButtonFlag25,
C_ulButtonFlag26,
C_ulButtonFlag27,
C_ulButtonFlag28,
C_ulButtonFlag29,
C_ulButtonFlag30,
C_ulButtonFlag31,
C_ulButtonFlag32
}
#endif /* D_IPT_Input_VariableDefine */
;
#ifndef _FIRE_DEADCODE_U64_ /* Added by RUC */
EXTERN struct IPT_tdstScriptValue_ IPT_g_hScriptKeyWordValue[]
#if defined(D_IPT_Input_VariableDefine)
=
{
/* Logical operators */
"And" ,IPT_E_KeyWord_And,
"Or" ,IPT_E_KeyWord_Or,
"Not" ,IPT_E_KeyWord_Not,
/* Keyboard operators */
"KeyJustPressed" ,IPT_E_KeyWord_KeyJustPressed,
"KeyJustReleased" ,IPT_E_KeyWord_KeyJustReleased,
"KeyPressed" ,IPT_E_KeyWord_KeyPressed,
"KeyReleased" ,IPT_E_KeyWord_KeyReleased,
/* Action operators */
"ActionJustValidated" ,IPT_E_KeyWord_ActionJustValidated,
"ActionJustInvalidated" ,IPT_E_KeyWord_ActionJustInvalidated,
"ActionValidated" ,IPT_E_KeyWord_ActionValidated,
"ActionInvalidated" ,IPT_E_KeyWord_ActionInvalidated,
/* Pad operators */
"PadJustPressed" ,IPT_E_KeyWord_PadJustPressed,
"PadJustReleased" ,IPT_E_KeyWord_PadJustReleased,
"PadPressed" ,IPT_E_KeyWord_PadPressed,
"PadReleased" ,IPT_E_KeyWord_PadReleased,
/* Joystick operators */
"JoyAxeValue" ,IPT_E_KeyWord_JoystickAxeValue,
"JoyJustPressed" ,IPT_E_KeyWord_JoystickJustPressed,
"JoyJustReleased" ,IPT_E_KeyWord_JoystickJustReleased,
"JoyPressed" ,IPT_E_KeyWord_JoystickPressed,
"JoyReleased" ,IPT_E_KeyWord_JoystickReleased,
/* joystick and pad operators */
"JoyOrPadJustPressed" ,IPT_E_KeyWord_JoystickOrPadJustPressed,
"JoyOrPadJustReleased" ,IPT_E_KeyWord_JoystickOrPadJustReleased,
"JoyOrPadPressed" ,IPT_E_KeyWord_JoystickOrPadPressed,
"JoyOrPadReleased" ,IPT_E_KeyWord_JoystickOrPadReleased,
/* Sequence operators */
"Sequence" ,IPT_E_KeyWord_Sequence,
"Key" ,IPT_E_KeyWord_SequenceKey,
"Pad" ,IPT_E_KeyWord_SequencePad,
"--Last--",-1
}
#endif /* D_IPT_Input_VariableDefine */
;
#endif /* _FIRE_DEADCODE_U64_ */ /* Added by RUC */
#if defined(__cplusplus)
extern "C"
{
#endif /* __cplusplus */
typedef unsigned char (IPT_tdfn_bIsKeyWordValid)(IPT_tdxHandleToKeyWordElement);
#if defined(__cplusplus)
}
#endif /* __cplusplus */
EXTERN IPT_tdfn_bIsKeyWordValid *IPT_p_fn_bIsKeyWordValid[IPT_E_NumberOfKeyWord&0x00ff]
#if defined(D_IPT_Input_VariableDefine)
=
{
/* Be carefull about the order of the functions pointers */
NULL,
/* Logical operators */
IPT_fn_bIsKeyWordValid_And,
IPT_fn_bIsKeyWordValid_Or,
IPT_fn_bIsKeyWordValid_Not,
/* Keyboard operators */
IPT_fn_bIsKeyWordValid_KeyJustPressed,
IPT_fn_bIsKeyWordValid_KeyJustReleased,
IPT_fn_bIsKeyWordValid_KeyPressed,
IPT_fn_bIsKeyWordValid_KeyReleased,
/* actions operators */
IPT_fn_bIsKeyWordValid_ActionJustValidated,
IPT_fn_bIsKeyWordValid_ActionJustInvalidated,
IPT_fn_bIsKeyWordValid_ActionValidated,
IPT_fn_bIsKeyWordValid_ActionInvalidated,
/* pad operators */
IPT_fn_bIsKeyWordValid_PadJustPressed,
IPT_fn_bIsKeyWordValid_PadJustReleased,
IPT_fn_bIsKeyWordValid_PadPressed,
IPT_fn_bIsKeyWordValid_PadReleased,
/* joystick operators */
IPT_fn_bIsKeyWordValid_JoystickAxeValue,
IPT_fn_bIsKeyWordValid_JoystickJustPressed,
IPT_fn_bIsKeyWordValid_JoystickJustReleased,
IPT_fn_bIsKeyWordValid_JoystickPressed,
IPT_fn_bIsKeyWordValid_JoystickReleased,
/* joystick and pad operators */
IPT_fn_bIsKeyWordValid_JoystickOrPadJustPressed,
IPT_fn_bIsKeyWordValid_JoystickOrPadJustReleased,
IPT_fn_bIsKeyWordValid_JoystickOrPadPressed,
IPT_fn_bIsKeyWordValid_JoystickOrPadReleased,
/* sequences operators */
IPT_fn_bIsKeyWordValid_Sequence,
IPT_fn_bIsKeyWordValid_SequenceKey,
IPT_fn_bIsKeyWordValid_SequenceKeyEnd,
IPT_fn_bIsKeyWordValid_SequencePad,
IPT_fn_bIsKeyWordValid_SequencePadEnd,
}
#endif /* D_IPT_Input_VariableDefine */
;
#undef EXTERN
#undef extern
#endif /* __IPT_KDef_H__ */

View File

@@ -0,0 +1,108 @@
/*=========================================================================
* IPT_Kwan.h :
* KeyWord Analyse
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__IPT_Kwan_h__)
#define __IPT_Kwan_h__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/****************************************/
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine*/
#if defined(__cplusplus)
extern "C"
{
#endif /* __cplusplus */
/**** Private functions ****/
/* LOL unsigned char IPT_fn_bIsKeyWordValid(IPT_tdxHandleToKeyWordElement hKeyWordElement);*/
/**** KeyWords functions ****/
unsigned char IPT_fn_bIsKeyWordValid_And(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_Or(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_Not(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_KeyJustPressed(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_KeyJustReleased(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_KeyPressed(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_KeyReleased(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_PadJustPressed(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_PadJustReleased(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_PadPressed(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_PadReleased(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_JoystickAxeValue(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_JoystickJustPressed(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_JoystickJustReleased(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_JoystickPressed(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_JoystickReleased(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_JoystickOrPadJustPressed(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_JoystickOrPadJustReleased(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_JoystickOrPadPressed(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_JoystickOrPadReleased(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_ActionJustValidated(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_ActionValidated(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_ActionJustInvalidated(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_ActionInvalidated(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_Sequence(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_SequenceKey(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_SequenceKeyEnd(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_SequencePad(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
unsigned char IPT_fn_bIsKeyWordValid_SequencePadEnd(IPT_tdxHandleToKeyWordElement _hKeyWordElement);
/* ANNECY AV {*/
/* This function must be defined for IPT_Kwan.c et IPT_Anal.c*/
#ifdef D_IPT_DefineIsKeyWordValid
#ifndef CODEWARRIOR
static
#endif
__inline unsigned char IPT_fn_bIsKeyWordValid(IPT_tdxHandleToKeyWordElement _hKeyWordElement)
{
unsigned char ucReturn = IPT_C_FALSE;
unsigned char (* p_fn_bFunction) (IPT_tdxHandleToKeyWordElement);
if ((p_fn_bFunction = IPT_p_fn_bIsKeyWordValid[(_hKeyWordElement->u_ElementUnion.swKeyWord)&0x00ff]) != NULL)
ucReturn = p_fn_bFunction (_hKeyWordElement);
#ifdef _DEBUG
else
M_IPTFatalError(E_uwIPT_UnknownActionAnalysis);
#endif
return(ucReturn);
}
#endif
/* END ANNECY AV }*/
#if defined(__cplusplus)
}
#endif /* __cplusplus */
#undef EXTERN
#undef extern
#endif /* __IPT_Kwan_h__ */

View File

@@ -0,0 +1,103 @@
/*=========================================================================
* IPT_Main.c :
* Variables declaration and init function
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined (__IPT_Main_H__)
#define __IPT_Main_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/****************************************/
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine*/
#if defined (__cplusplus)
extern "C"
{
#endif /* __cplusplus */
extern CPA_EXPORT void IPT_fn_vFirstInitInput();
extern CPA_EXPORT void IPT_fn_vInitMemory(unsigned long _ulMemSize);
/* GuS 13/08/98 : for snapshot load {*/
extern CPA_EXPORT void IPT_fn_vInitInputWhenLoadSnapshot( HINSTANCE hInstance, HWND hWindow );
extern CPA_EXPORT void IPT_fn_vDesinitInputWhenLoadSnapshot();
/* } Gus */
extern CPA_EXPORT void IPT_fn_vInitInput(short sHistoricSize,HINSTANCE hInstance,HWND hWindow);
extern CPA_EXPORT void IPT_fn_vDesinitInput(void);
extern CPA_EXPORT void IPT_fn_vResetInputEntry(void);
extern CPA_EXPORT IPT_tdxHandleToEntryElement IPT_fn_hGetEntryActionHandleForOptions(char *_szKeyActionName);
extern CPA_EXPORT char *IPT_fn_szGetEntryActionName(IPT_tdxHandleToEntryElement hKeyActionHandle);
extern CPA_EXPORT unsigned char IPT_fn_bIsAValidEntryActionHandle(IPT_tdxHandleToEntryElement hKeyActionHandle);
extern CPA_EXPORT unsigned long IPT_fn_ulNumberOfEntryAction(void);
extern CPA_EXPORT char *IPT_fn_szEntryActionNumber(unsigned long _ulEntryAction);
extern CPA_EXPORT void IPT_fn_vActivateAllEntryElements ( void ) ;
extern CPA_EXPORT void IPT_fn_vActivateEntryElement(IPT_tdxHandleToEntryElement _hEntryElement);
extern CPA_EXPORT void IPT_fn_vDesactivateEntryElement(IPT_tdxHandleToEntryElement _hEntryElement);
extern CPA_EXPORT unsigned char IPT_fn_bGetActivationFlagOfEntryElement(IPT_tdxHandleToEntryElement _hEntryElement);
extern CPA_EXPORT char IPT_fn_cGetValidAsciiKey(char *p_szValideKey);
extern CPA_EXPORT void IPT_PrintUsedStaticMemory(void);
extern CPA_EXPORT unsigned char IPT_fn_bIsKeyboardControlAvailable(void);
extern CPA_EXPORT unsigned char IPT_fn_bIsJoystickControlAvailable(void);
extern CPA_EXPORT unsigned char IPT_fn_bIsPaddleControlAvailable(void);
extern CPA_EXPORT void IPT_fn_vDesactiveJoystickAndPadControl(void);
extern CPA_EXPORT void IPT_fn_vActiveJoystickControl(void);
extern CPA_EXPORT void IPT_fn_vActivePaddleControl(void);
extern CPA_EXPORT unsigned char IPT_fn_bChangeIPTValue(IPT_tdxHandleToEntryElement _hElement,unsigned char ucWhichTest);
extern CPA_EXPORT unsigned char IPT_fn_bModifyIPTAction ( IPT_tdxHandleToEntryElement _hElementToChange, IPT_tdxHandleToEntryElement _hReplacingElement ) ;
extern CPA_EXPORT char *IPT_fn_szGetStringOf(IPT_tdxHandleToEntryElement _hElement);
/**** In IPT_Scpt.c ****/
extern CPA_EXPORT void IPT_fn_vReadInputScript(char *_szName);
extern CPA_EXPORT void IPT_fn_vEndReadInputScript(void);
extern CPA_EXPORT IPT_tdxHandleToEntryElement IPT_fn_hGetEntryActionHandle(char *_szKeyActionName);
ACP_tdxBool IPT_fn_bAJoypadConnected();
ACP_tdxBool IPT_fn_bAKeyJustPressed();
ACP_tdxBool IPT_fn_bAButtonPadJustPressed();
void *IPT_fn_p_vAlloc(unsigned long lSize);
void IPT_fn_vFree(void **p_vPointer);
#if defined (__cplusplus)
}
#endif /* __cplusplus */
#undef EXTERN
#undef extern
#endif /* __IPT_Main_H__ */

View File

@@ -0,0 +1,42 @@
/*=========================================================================
* IPT_Save.h :
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__IPT_SAVE_H__)
#define __IPT_SAVE_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/****************************************/
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine*/
extern CPA_EXPORT unsigned char IPT_fn_bSaveOptionsInFile(FILE *p_stFile);
extern CPA_EXPORT unsigned char IPT_fn_bLoadOptionsFromFile(FILE *p_stFile);
#undef EXTERN
#undef extern
#endif /* __IPT_SAVE_H__ */

View File

@@ -0,0 +1,97 @@
/*=========================================================================
* IPT_Scpt.h :
* Script read
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__IPT_SCPT_H__)
#define __IPT_SCPT_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/****************************************/
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine*/
/**** Sections definitions ****/
#define IPT_C_EntryActionSection "InputAction"
#define IPT_C_ParamOptions "Options"
#define IPT_C_SequenceSection "Sequence" /* See also in IPT_KDef.h */
#define IPT_C_AddCommandsSection "AddCommands"
#define IPT_C_ActivateDeviceSection "ActivateDevices"
#define IPT_C_ActivateKeyboardAction "Keyboard"
#define IPT_C_ActivatePadAction "Pad"
#define IPT_C_ActivateJoystickAction "Joystick"
#define IPT_C_KeyDefineSection "KeyDefine"
#define IPT_C_KeyDefineAction "NewKeyDefine"
/**** Macros definitions ****/
#define C_GrandChildSection ( 2)
#define C_ChildSection ( 1)
#define C_ThisSection ( 0)
#define C_ParentSection (-1)
#define C_GrandParentSection (-2)
#define C_GrandChildContext ( 2)
#define C_ChildContext ( 1)
#define C_ThisContext ( 0)
#define C_ParentContext (-1)
#define C_GrandParentContext (-2)
#define M_IsTitle (_eAction==SCR_EA_Anl_BeginSection)
#define M_IsEnd (_eAction==SCR_EA_Anl_EndSection)
#define M_IsBegSubSection (_eAction==SCR_EA_Anl_BeginSubSection)
#define M_IsEndSubSection (_eAction==SCR_EA_Anl_EndSubSection)
#define M_IsEntry (_eAction==SCR_EA_Anl_Entry)
#define M_ActionIs(szActionAsked) (!strcmpi(_p_szName,szActionAsked))
#define M_CheckScriptParamNumber(ulNumber) \
{ \
if (SCR_fn_uc_RdL0_GetNumberOfParameters(_ap_szParams)!=ulNumber) \
M_GameFatalError(E_uwGameScriptBadNumberOfArg); \
}
#if !defined(U64)
/**** Functions definitions ****/
SCR_tde_Anl_ReturnValue IPT_fn_eAddKeyCommandsScriptCallBack(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
SCR_tde_Anl_ReturnValue IPT_fn_eAddKeyActionScriptCallBack(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
SCR_tde_Anl_ReturnValue IPT_fn_eSequenceCallBack(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
SCR_tde_Anl_ReturnValue IPT_fn_eActivateDeviceScriptCallBack(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
SCR_tde_Anl_ReturnValue IPT_fn_eKeyDefineScriptCallBack(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction);
#endif /* U64 */
extern CPA_EXPORT IPT_tdxHandleToKeyWordElement IPT_fn_hAllocKeyWord(void);
extern CPA_EXPORT signed short IPT_fn_swGetKeyValue(char *_szKeyName,IPT_tdxHandleToScriptValue _hScriptValueTable);
extern CPA_EXPORT char *IPT_fn_szGetKeyName(signed short swValue,IPT_tdxHandleToScriptValue _hScriptValueTable);
extern CPA_EXPORT char *IPT_fn_p_szGetKeyPointerOfName(char *_szKeyName,IPT_tdxHandleToScriptValue _hScriptValueTable);
extern CPA_EXPORT char *IPT_fn_p_szGetNameOfKeyName(unsigned short uwKeyCode,unsigned char ucFrenchOrAmerican);
#undef EXTERN
#undef extern
#endif /* __IPT_SCPT_H__ */

View File

@@ -0,0 +1,135 @@
/*=========================================================================
* IPT_Str.h : Structure des fonctions d'entr<74>es
*
* Version 1.0
* Creation date 01/04/97
* Revision date
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__IPT_Str_H__)
#define __IPT_Str_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/****************************************/
#include "IPT_Def.h"
LST2_M_DynamicUseListOf(IPT_tdxHandleToEntryElement);
LST2_M_DynamicUseListOf(IPT_tdxHandleToKeyWordElement);
#if defined(D_IPT_Input_StructureDefine)
typedef struct IPT_tdstHistoricElement_
{
unsigned char bf2State;
unsigned char bf6DeviceType;
unsigned char ucCounter;
signed short swDeviceValue;
}IPT_tdstHistoricElement;
union tdu_KeyWordElementUnion_
{
signed short swJoyNumber;
signed short swJoyAction;
signed short swJoyValueMin;
signed short swJoyValueMax;
signed short swPadNumber;
signed short swPadAction;
signed short swKey;
signed short swKeyWord;
IPT_tdxHandleToEntryElement hEntryElement;
unsigned long ulNumberOfSequence;
};
typedef struct IPT_tdstKeyWordElement_
{
LST2_M_DynamicElementDeclaration(IPT_tdxHandleToKeyWordElement)
union tdu_KeyWordElementUnion_ u_ElementUnion;
unsigned char ucResult; /* Result of analyse */
unsigned char ucMinCounterInput;
unsigned char ucMaxCounterInput;
}IPT_tdstKeyWordElement;
typedef struct IPT_tdstEntryElement_
{
LST2_M_DynamicElementDeclaration(IPT_tdxHandleToEntryElement)
LST2_M_DynamicAnchorDeclaration(IPT_tdxHandleToKeyWordElement) hKeyWordList;
unsigned long ulNumberOfKeyWordElement;
struct IPT_tdstKeyWordElement_ *d_stKeyWordElementArray;
char *p_szActionName;
char *p_szEntryName; /* For options */
signed long lState; /* Pos : Counter since pressed (LONG_MAX), Neg : Counter since released (LONG_MIN) */
/* signed char scAnalogicValue; /* The joystick value is between -100 and 100 */
MTH_tdxReal xAnalogicValue;
unsigned char bIsActivate;
}IPT_tdstEntryElement;
typedef struct IPT_tdstInput_
{
unsigned char ucOnePadActivate;
unsigned char p_ucValideAndActiveDevice[IPT_E_NumberOfDeviceEvent];
unsigned char p_ucKeyboardCounter[256];
unsigned char p_ucPadAndJoyCounter[IPT_E_NumberOfDeviceEvent][IPT_E_NumberOfPadAndJoyAction];
#if !defined(U64)
SCR_tdst_Link_Table stEntryLink;
SCR_tdst_Link_Table stCommandLink;
unsigned char ucKeyboardType;
#endif /* U64 */
unsigned long ulNumberOfEntryElement;
struct IPT_tdstEntryElement_ *d_stEntryElementArray;
LST2_M_DynamicAnchorDeclaration(IPT_tdxHandleToEntryElement) hEntryElement;
short sEventHistoricSize;
IPT_tdxHandleToHistoricElement hEventHistoric;
}IPT_tdstInput;
/* XB 01/06/99 */
#ifndef _FIRE_DEADCODE_U64_
typedef struct IPT_tdstKeyAndPadDefine_
{
unsigned short uwBasedKey;
char *p_szFrenchKey;
char *p_szAmericanKey;
} IPT_tdstKeyAndPadDefine;
#endif /* _FIRE_DEADCODE_U64_ */
/*End XB */
#endif /* D_IPT_Input_StructureDefine */
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine*/
#ifndef _FIRE_DEADCODE_U64_ /* Added by RUC */
EXTERN struct IPT_tdstKeyAndPadDefine_ *IPT_gd_hKeyAndPadDefine;
#endif /* _FIRE_DEADCODE_U64_ */ /* Added by RUC */
EXTERN struct IPT_tdstInput_ IPT_g_hInputStructure;
#undef EXTERN
#undef extern
#endif /* __IPT_Str_H__ */

View File

@@ -0,0 +1,9 @@
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
#define C_szIPTVersion "IPT V5.0.1" /* The format is XXX Va.b.c with Xxx is the Tag of the module */
#define C_szIPTFullName "Input devices manager" /* the complete and clear name of the module */
#define C_szIPTDate "Mai 5 1997" /* The format is "Mmm dd yyyy".You can use __DATE__ but be careful that you have the control of the compilation*/

View File

@@ -0,0 +1,37 @@
#ifndef __IPT_MEM_H__
#define __IPT_MEM_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
enum e_ucIPTStaticBlocks
{
E_ucIPTMemoryBlock,
E_ucIPTMaxBlocksNb
};
#undef EXTERN
#undef extern
#if !defined(D_IPT_Input_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_IPT_Input_VariableDefine */
#ifndef _FIRE_DEADCODE_U64_ /* Added by RUC */
EXTERN tdstBlockInfo g_a_stIPTBlocksInfo[E_ucIPTMaxBlocksNb];
#endif /* _FIRE_DEADCODE_U64_ */ /* Added by RUC */
#ifdef __DYNAMIC_MALLOC_ALLOWED__
#ifdef __DEBUG_MALLOC_MODE__
EXTERN tdstDynInfo g_stIPTDynInfo;
#endif /* __DEBUG_MALLOC_MODE__ */
#endif /* __DYNAMIC_MALLOC_ALLOWED__ */
#undef EXTERN
#undef extern
#endif /* __IPT_MEM_H__ */