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

Author Topic: WinEvent  (Read 5685 times)

0 Members and 1 Guest are viewing this topic.

Tima32

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
WinEvent
« on: July 11, 2021, 01:50:44 am »
Is there a way to get windows events other than using the SetWinEventHook function?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: WinEvent
« Reply #1 on: July 11, 2021, 04:00:11 pm »
You mean other events that what you get via sf::Event and window.pollEvents()?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tima32

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
Re: WinEvent
« Reply #2 on: July 11, 2021, 07:41:27 pm »
Yes. But I need some events that cannot be received via sf :: Event. For example, raw input and stylus events. Usually these events are received by the function
LRESULT CALLBACK WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

(System Windows)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: WinEvent
« Reply #3 on: July 12, 2021, 12:00:51 am »
There's no other way with SFML than custom platform specific code
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/