Skip to content

Commit

Permalink
Ashita: v4 - update to ADK v4.15
Browse files Browse the repository at this point in the history
  • Loading branch information
Renee Koecher committed Jan 10, 2023
1 parent 5c006de commit 960f16b
Show file tree
Hide file tree
Showing 21 changed files with 76 additions and 24 deletions.
60 changes: 56 additions & 4 deletions 3rdParty/SDKs/Ashita/ADK_v4/Ashita.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down Expand Up @@ -65,7 +65,7 @@
//
////////////////////////////////////////////////////////////////////////////////////////////////////

constexpr auto ASHITA_INTERFACE_VERSION = 4.14;
constexpr auto ASHITA_INTERFACE_VERSION = 4.15;

////////////////////////////////////////////////////////////////////////////////////////////////////
//
Expand All @@ -84,6 +84,7 @@ constexpr auto ASHITA_INTERFACE_VERSION = 4.14;
#include "d3d8/includes/d3d8.h"
#include "d3d8/includes/d3dx8.h"
#include "d3d8/includes/dinput.h"
#include <Xinput.h>

// Ashita SDK Includes
#include "BinaryData.h"
Expand Down Expand Up @@ -408,6 +409,12 @@ namespace Ashita
// method. Passes the device state to the callback to be handled before being sent to the
// game. (Uses standard IDirectInputDevice8::GetDeviceState setup and params.)
//
// controllercallback_f
//
// Function prototype used for registered callbacks to the hooked directinput controller
// interface. Passes the parameters from a rgdod entry to be handled before being used
// to update controller state and sent to the game.
//
// keyboardcallback_f
//
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms644984(v=vs.85).aspx
Expand All @@ -421,13 +428,28 @@ namespace Ashita
// Function prototype used for registered callbacks to the hooked mouse window message
// events. Passes the mouse message to the callback to be handled before being sent to
// the game.
//
// xinputgetstatecallback_f
//
// https://learn.microsoft.com/en-us/windows/win32/api/xinput/nf-xinput-xinputgetstate
// Function prototype used for registered callbacks to the hooked XInputGetState function.
// Passes the device state to the callback to be handled before being sent to the game.
//
// xinputcallback_f
//
// Function prototype used for registered callbacks to the XInput interface. Passes
// single button events to be handled before being used to update controller state and
// sent to the game.
//
////////////////////////////////////////////////////////////////////////////////////////////////////

typedef HRESULT(__stdcall* getdevicedatacallback_f)(DWORD, LPDIDEVICEOBJECTDATA, DWORD, LPDWORD, DWORD);
typedef HRESULT(__stdcall* getdevicestatecallback_f)(DWORD, LPVOID);
typedef BOOL(__stdcall* controllercallback_f)(uint32_t*, int32_t*, bool, bool);
typedef BOOL(__stdcall* keyboardcallback_f)(WPARAM, LPARAM, bool);
typedef BOOL(__stdcall* mousecallback_f)(uint32_t, WPARAM, LPARAM, bool);
typedef DWORD(__stdcall* xinputgetstatecallback_f)(DWORD, XINPUT_STATE*);
typedef BOOL(__stdcall* xinputcallback_f)(uint8_t*, int16_t*, bool, bool);

////////////////////////////////////////////////////////////////////////////////////////////////////
//
Expand Down Expand Up @@ -1239,6 +1261,20 @@ struct ITarget
//
////////////////////////////////////////////////////////////////////////////////////////////////////

struct IController
{
// Methods (Callbacks)
virtual void AddCallback(const char* alias, const getdevicedatacallback_f& datacb, const getdevicestatecallback_f& statecb, const controllercallback_f& controllercb) = 0;
virtual void RemoveCallback(const char* alias) = 0;

// Methods (Input Injection)
virtual void QueueButtonData(DWORD dwOfs, DWORD dwData) = 0;

// Properties
virtual bool GetTrackDeadZone(void) const = 0;
virtual void SetTrackDeadZone(bool track) = 0;
};

struct IKeyboard
{
// Methods (Keybinds)
Expand Down Expand Up @@ -1282,11 +1318,27 @@ struct IMouse
virtual void SetBlockInput(bool blocked) = 0;
};

struct IXInput
{
// Methods (Callbacks)
virtual void AddCallback(const char* alias, const xinputgetstatecallback_f& statecb, const xinputcallback_f& controllercb) = 0;
virtual void RemoveCallback(const char* alias) = 0;

// Methods (Input Injection)
virtual void QueueButtonData(uint8_t button, int16_t state) = 0;

// Properties
virtual bool GetTrackDeadZone(void) const = 0;
virtual void SetTrackDeadZone(bool track) = 0;
};

struct IInputManager
{
// Methods (Input Objects)
virtual IKeyboard* GetKeyboard(void) const = 0;
virtual IMouse* GetMouse(void) const = 0;
virtual IController* GetController(void) const = 0;
virtual IKeyboard* GetKeyboard(void) const = 0;
virtual IMouse* GetMouse(void) const = 0;
virtual IXInput* GetXInput(void) const = 0;

// Properties
virtual bool GetAllowGamepadInBackground(void) const = 0;
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/BinaryData.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/Chat.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/Commands.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ErrorHandling.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ImGuiFontAwesome.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita - Copyright (c) 2022 Ashita Development Team
* Ashita - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/Memory.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/Registry.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ScopeGuard.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/Threading.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ffxi/autofollow.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ffxi/castbar.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ffxi/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ffxi/entity.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ffxi/enums.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ffxi/inventory.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ffxi/party.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ffxi/player.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/ffxi/target.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/SDKs/Ashita/ADK_v4/imgui.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ashita SDK - Copyright (c) 2022 Ashita Development Team
* Ashita SDK - Copyright (c) 2023 Ashita Development Team
* Contact: https://www.ashitaxi.com/
* Contact: https://discord.gg/Ashita
*
Expand Down
2 changes: 1 addition & 1 deletion XIPivot.Ashita_v4/polplugin/AshitaInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace XiPivot
{
static constexpr auto PluginName = "pivot";
static constexpr auto PluginAuthor = "Heals";
static constexpr auto PluginVersion = 4.1403;
static constexpr auto PluginVersion = 4.1500;
static constexpr auto PluginUrl = "https://github.com/Shirk/XIPivot";
static constexpr auto PluginDescr = "Runtime DAT, sfx and bgm replacement manager.";
static constexpr auto PluginCommand = "pivot";
Expand Down

0 comments on commit 960f16b

Please sign in to comment.