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

Author Topic: Using Event without using a Window?  (Read 1110 times)

0 Members and 1 Guest are viewing this topic.

ggggggggggggggg

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • Email
Using Event without using a Window?
« on: July 19, 2014, 04:04:58 pm »
Basically I want to use an event whiile without a window (using it with the console).

Strelok

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • GitHub
Re: Using Event without using a Window?
« Reply #1 on: July 19, 2014, 04:16:47 pm »
I'm quite sure you need a window and poll/wait events from the window to even  use sf::event.
Maybe there's a way to get a handle to the command line window but that is far beyond my knowledge :D
« Last Edit: July 19, 2014, 04:19:17 pm by Strelok »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Using Event without using a Window?
« Reply #2 on: July 19, 2014, 04:17:42 pm »
Events are produced by windows, without a window there's no event. Except mouse / keyboard / joystick / sensors, but there are dedicated classes to access them without a window.

What do you want to do?
Laurent Gomila - SFML developer

 

anything