Jump to content

Mouse in SDL

- - - - -

  • Please log in to reply
3 replies to this topic

#1
Apprentice123

Apprentice123

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 430 posts
I have a picture (3x3 board). How do I use the mouse in SDL, to click in one position of the board ?

#2
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts
Are you asking to move the mouse programmatically using SDL (can't be done as far as I know) or are you asking how to get mouse input events using SDL (can be done with SDL API)?
Wow I changed my sig!

#3
Apprentice123

Apprentice123

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 430 posts

ZekeDragon said:

Are you asking to move the mouse programmatically using SDL (can't be done as far as I know) or are you asking how to get mouse input events using SDL (can be done with SDL API)?

Yes. How I get mouse input events using SDL ?

#4
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 889 posts
  • Location:::1
See this.
A conclusion is where you got tired of thinking.
#define class struct    // All is public.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users