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

Author Topic: Keyboard in CLI application? KeyReleased event without window?  (Read 2163 times)

0 Members and 1 Guest are viewing this topic.

lehthanis

  • Newbie
  • *
  • Posts: 6
    • View Profile
Keyboard in CLI application? KeyReleased event without window?
« on: November 19, 2016, 04:17:26 am »
I'm trying to use the SFML keyboard events in a CLI application...is this possible properly?

I need to trap the output of the keys so it doesn't actually type the letter to the console,
I need to access the KeyReleased event, which only seems to be available in a window, which I don't have.

Is any of this possible?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Crowdfunding for "Stardust" requested HELP!!!
« Reply #1 on: November 19, 2016, 09:58:31 am »
As you found out, events only work with a window.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything