Jump to content

  • Log In with Google      Sign In   
  • Create Account

To trigger a key or mouse button


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 power_of_learning   Members   -  Reputation: 102

Like
0Likes
Like

Posted 03 February 2013 - 07:12 AM

Hello, everybody.

I am in a level between beginner and advanced and that is closer to beginner in using SDL as well as to be able to satisfy myself by dealing with certain sections of the library according to my needs. If we look at the perspective of using event, I can check events of keyboard, mouse and joystick for now but I don't know how to trigger a key or to click a right or left mouse button by any code. Is there a way of doing this with certain SDL functions and structures or code blocks which contain certain commands?

Not: My English knowledge may not be enough to express my problem. I am not right sure if these structures of sentence is suitable according to English grammar rules so I am sorry. I tried to write clear as best I can. I hope you understand it.

Thanks.



Sponsor:

#2 SiCrane   Moderators   -  Reputation: 9670

Like
0Likes
Like

Posted 03 February 2013 - 07:31 AM

You can use SDL_PushEvent() to put an event in the queue.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS