Skip to content
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

Tilt controls are not working Qt #4907

Closed
bhavin192 opened this issue Dec 22, 2013 · 25 comments
Closed

Tilt controls are not working Qt #4907

bhavin192 opened this issue Dec 22, 2013 · 25 comments

Comments

@bhavin192
Copy link
Contributor

After merge of #4515

Tilt controls in Qt for symbian are not working

@xsacha can you have a look

@bollu
Copy link
Contributor

bollu commented Dec 22, 2013

that is really interesting. Isn't accelerometer working right? (or is it something to do with the coefficitents?) @xsacha: could you try playing around with the values of maxX and maxY in NormalizeTilt() in the file UI/TiltEventProcessor.cpp on line number 47 ?.

Thanks!

@bhavin192
Copy link
Contributor Author

I will try wait ..

@bollu
Copy link
Contributor

bollu commented Dec 22, 2013

I'll be back in ~1/2 an hour. Will check you response then :)

@bhavin192
Copy link
Contributor Author

Added
#if defined (ANDROID) || (SYMBIAN32)

and tried different values (some large and some min. like 3,4 etc.) but no luck
maybe something different is causing this

still I am trying different values maybe find solution 😄

@bollu
Copy link
Contributor

bollu commented Dec 22, 2013

Thanks for the help!. try setting something like 100 or 200. Also, check your deadzone radius: is it set to 1.0 ? If it is, then no input will be received at all.

@bhavin192
Copy link
Contributor Author

Will check tomorrow btw deadzone radius is less than 1.0

@KingPepper
Copy link

@bollu,
Also I have noticed that the Axis are not in the correct positions as in, I tilted my Android tablet down in Landscape mode, and the car or player moves Right, and Tilt up, car or player goes Left, using the Analogue Tilt function.

@KingPepper
Copy link

In Fact its the same with the Dpad Tilt function as well.

@bollu
Copy link
Contributor

bollu commented Dec 23, 2013

any updates?

@bhavin192
Copy link
Contributor Author

Not checked yet
will do after ~3/4 hour

@bollu
Copy link
Contributor

bollu commented Dec 23, 2013

Also, @KingPepper: Could you check if the tilt controls were working before the merge? If so, then can use the previous code (I doubt it was though, unless I've made an oversight). If it doesn't work, then it'll need some more rewrite - we need to allow proper calibration which is a pain to implement.

@bhavin192
Copy link
Contributor Author

@bollu

No luck. Tested from 100 and less
but I think the .cpp is not taking effect or something different is wrong

@bollu
Copy link
Contributor

bollu commented Dec 23, 2013

@bhavin192 you are recompiling right? :) I'm not sure how ppsspp handles accelerometer events from the qt side of things... I'd really like @xsacha to get involved in this since he's the resident at expert.

Does anyone else have problems on this?

@KingPepper
Copy link

@bollu,
Sorry about the delay in an answer, I was at work........
Yes it seems the axis have always been wrong even before the merge, didn't even realise. LOL.
Tested 0.9.6-172

@bhavin192
Copy link
Contributor Author

@bollu

For sure , he will but not now after some days
btw I am just compiling

@bollu
Copy link
Contributor

bollu commented Dec 24, 2013

@KingPepper: Thanks for the info. This is a deeper problem in that case - I'll have to implement full-blown calibration. Wonder if @hrydgard has any ideas? There may be a way to easily extract axes data that I'm not aware of...

@xsacha
Copy link
Collaborator

xsacha commented Jan 2, 2014

Shouldn't require any special calibration.
It was working when I originally implemented it (when there was no calibration).

@bollu
Copy link
Contributor

bollu commented Jan 7, 2014

@bhavin192 any updates? I'm sorry, I'm able to get enough time to work on this :(

@bhavin192
Copy link
Contributor Author

@bollu
My Qt stucks at error
printf was not declaired in it's scope I have tried to include headers but giving random errors
I think 8 is max value for both x and y

@xsacha
Copy link
Collaborator

xsacha commented Feb 19, 2014

You're trying to get 1.0 as maximum value, correct? The values reported by the APIs are always in meters per second. 9.8 is from gravity (when phone is facing in any direction), as it is an accelerometer. So you want x and y to be 9.8.

Added Symbian and Blackberry.

@bhavin192
Copy link
Contributor Author

That's nice
gravity 9.8 as name suggest accelerometer

@KingPepper
Copy link

Remember guys, the axis's are not right still on the Android side of things, as I mentioned earlier.
IE.......If I tilt my Tablet down to towards me, in Landscape Mode (Default) ,the Analogue stick goes left rather than down, as it should, and Vice Versa.

@bhavin192
Copy link
Contributor Author

@xsacha

Tilt is still not working

@xsacha
Copy link
Collaborator

xsacha commented Feb 20, 2014

I know. It isn't actual receiving any data. I just updated the scaling. From: BhavinSent: Thursday, 20 February 2014 1:38 PMTo: hrydgard/ppssppReply To: hrydgard/ppssppCc: xsachaSubject: Re: [ppsspp] Tilt controls are not working Qt (#4907)@xsacha

Tilt is still not working

—Reply to this email directly or view it on GitHub.

@xsacha
Copy link
Collaborator

xsacha commented May 15, 2014

Fixed again. 92d074d

@xsacha xsacha closed this as completed May 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants