Home

Resume

Blog

Teikitu


/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/*  »Project«   Teikitu Gaming System (TgS) (∂)
    »File«      TgS (WIN) Input - Internal - Data.h
    »Author«    Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com)
    »Version«   4.51 / »GUID« A9981407-3EC9-42AF-8B6F-8BE6DD919615                                                                                                        */
/*   -------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*  Copyright: © 2002-2017, Andrew Aye.  All Rights Reserved.
    This software is free for non-commercial use.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
      following conditions are met:
        Redistribution of source code must retain this copyright notice, this list of conditions and the following disclaimers.
        Redistribution in binary form must reproduce this copyright notice, this list of conditions and the following disclaimers in the documentation and other materials
          provided with the distribution.
    The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
    The intellectual property rights of the algorithms used reside with Andrew Aye.
    You may not use this software, in whole or in part, in support of any commercial product without the express written consent of the author.
    There is no warranty or other guarantee of fitness of this software for any purpose. It is provided solely "as is".                                                   */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
#if !defined(TGS_WIN_INPUT_INTERNAL_DATA_H)
#define TGS_WIN_INPUT_INTERNAL_DATA_H
#pragma once

#if !defined(TGS_PLATFORM_INPUT_INTERNAL_H)
#error This file should not be included directly - use the correct platform include wrapper
#endif

#include "TgS (WIN) Input - Internal - Type.h"


/* == Input ============================================================================================================================================================= */

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
/*  Forward Declaration of Platform Types                                                                                                                                 */
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */

typedef struct IDirectInput8A*              LPDIRECTINPUT8;
typedef struct IDirectInputDeviceA*         LPDIRECTINPUTDEVICE;
typedef struct IDirectInputDevice8A*        LPDIRECTINPUTDEVICE8;
typedef struct _DIDATAFORMAT                DIDATAFORMAT, *LPDIDATAFORMAT;
typedef const DIDATAFORMAT*                 LPCDIDATAFORMAT;
typedef struct IUnknown                     IUnknown;
typedef IUnknown*                           LPUNKNOWN;


/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
/*  Private Data                                                                                                                                                          */
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */

TgEXTN TgMS_HINSTANCE                       g_hInstance;
TgEXTN TgMS_HWND                            g_hWnd;

TgEXTN TgMS_HINSTANCE                       g_hDLL_DInput8;
TgEXTN TgMS_HINSTANCE                       g_hDLL_xInput;

TgEXTN P_TgVOID                             g_pdxDI;

TgEXTN HRESULT                              (__stdcall *g_pfnDirectInput8Create)( TgMS_HINSTANCE, TgUINT32, CP_TgVOID, PP_TgVOID, P_TgVOID );

TgEXTN ULONG                                (__stdcall *g_pfnDIN8_Release)( LPDIRECTINPUT8 );
TgEXTN HRESULT                              (__stdcall *g_pfnDIN8_CreateDevice)(LPDIRECTINPUT8, REFGUID, LPDIRECTINPUTDEVICE8*, LPUNKNOWN );
TgEXTN HRESULT                              (__stdcall *g_pfnDIN8_RunControlPanel)( LPDIRECTINPUT8, TgMS_HWND, DWORD );

TgEXTN ULONG                                (__stdcall *g_pfnDID8_Release)( LPDIRECTINPUTDEVICE8 );
TgEXTN HRESULT                              (__stdcall *g_pfnDID8_Acquire)( LPDIRECTINPUTDEVICE8 );
TgEXTN HRESULT                              (__stdcall *g_pfnDID8_Unacquire)( LPDIRECTINPUTDEVICE8 );
TgEXTN HRESULT                              (__stdcall *g_pfnDID8_GetDeviceState)( LPDIRECTINPUTDEVICE8, DWORD, P_TgVOID );
TgEXTN HRESULT                              (__stdcall *g_pfnDID8_SetDataFormat)( LPDIRECTINPUTDEVICE8, LPCDIDATAFORMAT );
TgEXTN HRESULT                              (__stdcall *g_pfnDID8_SetCooperativeLevel)( LPDIRECTINPUTDEVICE8, TgMS_HWND, DWORD );

TgEXTN TgUINT32                             (__stdcall *g_pfnXInputSetState)( TgUINT32, P_TgVOID );
TgEXTN TgUINT32                             (__stdcall *g_pfnXInputGetState)( TgUINT32, P_TgVOID );
TgEXTN TgUINT32                             (__stdcall *g_pfnXInputGetCapabilities)( TgUINT32, TgUINT32, P_TgVOID );


/* ====================================================================================================================================================================== */
#endif