Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


TShiftState not passed along to Lua engine?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Thu May 26, 2016 12:17 am    Post subject: TShiftState not passed along to Lua engine? Reply with quote

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?
Back to top
View user's profile Send private message
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Thu Jun 02, 2016 9:50 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Fri Jun 03, 2016 2:36 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message MSN Messenger
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Fri Jun 03, 2016 4:03 am    Post subject: Reply with quote

alright, i will try learning and adding it after i finish my current projects Very Happy thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites