-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redid the tilt controls in a nicer way #4515
Conversation
If I'm reading this right it disables regular axises (analog sticks?) And it'll break the Windows build. -[Unknown] |
Hmm, okay, I'll uncomment that in that case. |
yes, I know it'll break windows. Forgot to add that. could you edit the VS solution please? |
Done. enabled the default axis event if the tilt events are disabled |
@hrydgard, @unknownbrackets : other than the windows build, is there anything else missing? |
I'll take a look at it soon, been a bit busy. |
sure thing :) |
@hrydgard: any update? ;) |
@hrydgard: sorry, college snatched programming away from me for a solid moth or so :P Going to re-merge this branch again and rewrite some code :) |
@bollu Remember make change in |
done! :). EDIT - the symbian build seems to have failed the build. don't know why. |
The Qt project files (this is why Symbian failed) and Windows project files still need to be updated. |
@sum2012: Try this: #define _USE_MATH_DEFINES
#include <cmath> At the top of the file. |
@thedax Thanks work |
No problem. If @bollu will actually look at his repository this time (the last time I tried to help, he never saw it for some reason :( ), I'll make a pull request on it which will update the project files and include the buildfix (though it'll have an ifdef around it for MSC_VER so only Visual Studio includes cmath). |
@thedax I see scedisplay.cpp |
@bollu it is windows build fix |
|
Well, -[Unknown] |
This reverts commit 38fb300.
@thedax my bad, hadn't seen your pull request :]. And thanks for fixing the windows build guys (it must be annoying to babysit my pull requests, i'm sorry) |
I'll pull your changes in about an hour. |
Sum2012 gets the credit this time, heh. I was referring to the last major pull request you made, when it needed a few Windows fixes, and Henrik ended up fixing it. |
Because it makes merging easier. If you accept his pullrq, it'll add his commits to this pullrq. |
I'm assuming this will be merged once the build passes yes? EDIT - symbian build still fails on a linker error. What am I missing?
|
The Qt project files still need to be updated. |
How would I do that?. Also, that an extra step that's been added while I was gone? |
It's been a necessary step for as long as Qt has been supported in PPSSPP. Edit the section in https://github.com/hrydgard/ppsspp/blob/master/Qt/PPSSPP.pro#L80 and it should work. |
Qt builds on Linux too, just use Qt Creator. -[Unknown] |
And there you go, assuming no other issues exist, this should be ready for merging. |
Yep! At last! :) |
Giving this a quick test compile in VS 2013 (it's pretty picky). |
This is my first time to fork other people branch :) |
Visual Studio 2013 compiled it fine. This is all good to go. |
Thanks for the awesome help guys!. @hrydgard: merge this? :3 |
@hrydgard the commit still have porblem ? |
Any reason this hasn't been merged yet? :) |
I wanted to see if I can find a more generic design but I've realized I don't have the time, so here we go :P Can always be changed later. |
Redid the tilt controls in a nicer way
Plus, you can use the D-Pad, Analog Stick and the PSP action buttons
Decided to rewrite it. As of now, all of the tilt interpretetion code is in one unit -
TiltEventProcessor.cpp
.NativeApp
requests this "module" (a set of free-standing functions) to process the tilt and send the appropriate event. Code is heavily documented ;)EDIT:
1)Sorry for the typo in the branch name.
TiltEventProcessor.cpp
,TiltEventProcessor.h
into the solution for me?Thanks!