Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Can SFML press a mouse/keyboard button?  (Read 2328 times)

0 Members and 1 Guest are viewing this topic.

Ruckamongus

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Can SFML press a mouse/keyboard button?
« on: November 10, 2012, 10:44:55 pm »
Title says it all, can SFML press an I/O button? For example I can control the global location of the mouse with set position, but can I have it click at a given time, etc?

Thanks!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Can SFML press a mouse/keyboard button?
« Reply #1 on: November 10, 2012, 11:30:32 pm »
No, you'll have to use some OS specific function on your own.

If you want to simulate clicks/keyboard input then you might want to use other tools like AutoHotKey.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Ruckamongus

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: Can SFML press a mouse/keyboard button?
« Reply #2 on: November 10, 2012, 11:45:55 pm »
Thanks for the tip, I figured it'd have to be OS specific. I made a little app that controls my mouse... with my Xbox 360 controller! Ultimately laziness :P