Posted: Thu May 26, 2016 12:17 am Post subject: TShiftState not passed along to Lua engine?
LuaCaller_KeyEvent only passes along the calling component and key to Lua. Is this intended, for TShiftState to be superceded by isKeyPressed()? Or should I try writing it in and creating a pull request on git?
So.....was this a stupid question? I just don't want to go on a fools errand by learning pascal just to patch in an unnecessary feature that wouldn't be integrated into the main build.
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
Posted: Fri Jun 03, 2016 2:36 am Post subject:
i think isKeyPressed is easier to use than a tshiftstate which is a 'set' object for which you'll need special handling. (convert it to a binary and let the user check the bitfield, or turn it into a table with booleans for each keystate)
also, internally it uses getKeyState (isKeyPressed) to build up that set
butif you wish to learn pascal and lua you could add it. Extra parameters won't break compatibility with existing scripts _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum