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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dragonmost

Pages: [1]
1
Window / Re: Out of focus input
« on: July 16, 2015, 09:39:40 am »
sf::Joystick doesn't work with events.

So I could just make a loop with something like
Keyboard KB;

if (KB.isKeyPressed(KB.A))
        cout << "A";
 

but do it with a joystick.
That's simpler then trying to play with events

2
Window / Re: Out of focus input
« on: July 16, 2015, 09:29:33 am »
Why do you think you can't use the sf::Joystick class?

As far as I know it doesn't trigger any event when out of focus

3
Window / Out of focus input
« on: July 16, 2015, 09:25:01 am »
Hey and thanks in advance everyone.

I've been looking around put couldn't find a clear answer.
I want to do a "controller cam" program where you see what input are being made by a controller while gaming.
The issue is, the window can't be in focus since the game has focus. I believe I can't use SFML's joystick class and I cant seem to find a precise answer for this.
So far I got: GetAsyncKeyState function and GetRawInputData function.
Not sure I really understand them so I'de like to know if you guys got any other relevant ways of doing it or any tips on learning to use these functions.

I'm using Visual studio 2013 with SFML C++ on Windows 7
I'm also open to C/C# with different libraries

Pages: [1]