trigger controls

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Thu May 21, 2009 10:49 am

is there a way to simulate a control press? i dont mean like a keyboard key or a mouse click, i mean like up, down, or jump, etc. so my plugin could trigger events as if the actual controls were pressed?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Thu May 21, 2009 3:46 pm

No, the control press conditions are triggers within the Mouse & Keyboard object... why do you need to trigger them manually? What are you trying to achieve?
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Thu May 21, 2009 4:59 pm

I think he means he want a triggered condition. Which instead of using CND_STATIC in the definition of a condition you use CND_Triggered and the Generate event()
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Thu May 21, 2009 5:14 pm

thanks guys
im making a custom controls object to work with mouse and keyboard as a simple workaround until the official custom controls come out. i can retrieve the value of the key pressed from mouse-keyboard, and reuse it for my own custom movement event sheets. but id like to share it with the community and most people use behaviors for movement, if i had a way to access the control data, and trigger those events, it could work with built in behaviors as well
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat May 23, 2009 10:44 pm

so does this mean it's not possible? or it's an annoying question? or what?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat May 23, 2009 11:01 pm

No, I don't think you can do this with the SDK yet.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Sat May 23, 2009 11:02 pm

I don't think it's possible right now :s
It would be nice to have though.

Damn! I want a crack at plugins?
I'm looking at you, mousekeyboard plugin :O
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Sun May 24, 2009 12:59 am

ok, thanks guys. I'll still make a version of it to help with custom controls schemes at least
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461


Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 1 guest