21-04-2012 09:07 PM - edited 21-04-2012 09:26 PM
Hey all,
Just fiddling about with gamepad data. I've hooked my camera's position up to the left analog stick, and weirdly, it seems to move the camera even when I don't touch the stick. Printing out the values for gamePadData.AnalogLeftX and gamePadData.AnalogLeftY reveals that they are not zero when the stick isn't being moved. Is that normal? Do I have to dampen the values returned so my camera will only move when there's a proper push on the sticks?
Thanks for any help.
edit - for clarify, this is on a Vita.
Solved! Go to Solution.
21-04-2012 09:52 PM - edited 21-04-2012 09:53 PM
yes, most analog sticks require specifying a small "DeadZone" around the center of the stick where the stick has no effect until it moves outside of this deadzone.
on 21-04-2012 10:19 PM
Ah, thank you for the answer! I would give you kudos but it doesn't seem to be letting me.
on 21-04-2012 10:23 PM
on 07-09-2012 08:18 AM
I'm having similar issues with my right analog stick. My left one is fine. But what values are you normally using for the "DeadZone"? Also, are analog stick values for X and Y directions range between 0 to 1?
PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.
フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと
PSM DevPortalを一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870