diff --git a/Include/Core/Classes/KeyListen.hpp b/Include/Core/Classes/KeyListen.hpp new file mode 100644 index 0000000..4b2985a --- /dev/null +++ b/Include/Core/Classes/KeyListen.hpp @@ -0,0 +1,27 @@ +#ifndef KEYLISTEN_HPP_INCLUDED +#define KEYLISTEN_HPP_INCLUDED + +#include "../JavaClass/Object.hpp" +#include "../JavaClass/Class.hpp" +#include +#include + +namespace Internal +{ + class KeyListen : public Object + { + public: + KeyListen(const void* Obj); + + KeyListen() = default; + KeyListen(KeyListen&& Obj) = default; + KeyListen(const KeyListen& Obj) = default; + KeyListen& operator=(KeyListen&& Obj) = default; + KeyListen& operator=(const KeyListen& Obj) = default; + + static Class GetClass(); + + std::vector GetKeysPressed() const; + }; +} +#endif // KEYLISTEN_HPP_INCLUDED diff --git a/Include/Core/Internal.hpp b/Include/Core/Internal.hpp index ad16ad6..1689304 100644 --- a/Include/Core/Internal.hpp +++ b/Include/Core/Internal.hpp @@ -78,6 +78,7 @@ #include "Classes/ItemInfo.hpp" #include "Classes/IterableHashTable.hpp" #include "Classes/IterableQueue.hpp" +#include "Classes/KeyListen.hpp" #include "Classes/LinkedList.hpp" #include "Classes/MessageNode.hpp" #include "Classes/Model.hpp" @@ -160,7 +161,7 @@ namespace Internal Cache GetItemInfoCache(); Cache GetItemModelCache(); Cache GetItemSpriteCache(); - std::vector GetKeysPressed(); + KeyListen GetKeyListener(); std::vector GetLevels(); ClanMemberList GetLocalClanMemberList(); ClientScriptSettings GetLocalClientScriptSettings(); @@ -312,5 +313,7 @@ namespace Internal std::int8_t GetTileSettings(std::int32_t X, std::int32_t Y, std::int32_t Plane); std::int32_t GetCollisionFlags(std::int32_t X, std::int32_t Y, std::int32_t Plane); std::vector ToByteArray(const Object& O); + std::vector GetKeysPressed(); + } #endif // INTERNAL_HPP_INCLUDED diff --git a/Library/libAlpacaLibrary.a b/Library/libAlpacaLibrary.a index 7a005e3..a115a05 100644 Binary files a/Library/libAlpacaLibrary.a and b/Library/libAlpacaLibrary.a differ