Advertisement



Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions

New Member?



 
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related.

Reply
 
LinkBack Thread Tools
Old 07-15-2008, 06:11 PM   #1 (permalink)
Experienced Zuner
 
Rockman87's Avatar
 
Join Date: Nov 2007
Location: UT, USA
Posts: 199
Reputation: 25
Send a message via MSN to Rockman87
Default Touch pad info


I can't find the thread this was discussed, but a few people were talking about how touch input sometimes becomes unresponsive. Ussually with quick swipes in opposite Direction. I reported this to microsoft via https://connect.microsoft.com/feedback.

This is what microsoft said
Quote:
This may be a problem with Dead zones on the touch pad. Have you tried specifying the type of DeadZone to apply to the touchpad using the GamePad.GetState() overload that takes in a GamePadDeadZone enumeration?
I then changed the deadzone to circular. It was a lot better but still was unresponsive at times. However, the game I am creating(Xmonster) uses 4 directional sprites so I have to use Independent Axis Deadzone, else it doesn't reconize to draw 4 different directions. There is another option to set the deadzone to none so that it returns raw values and the programmer can set the dead zone. Though, I don't know how to accomplish that.

I think it is still an XNA problem, I think they could make it more responsive. Somebody else may have to figure it out.

Here is the link to the issue so you guys can follow up what he says next.
https://connect.microsoft.com/feedba...007&SiteID=226



__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




Rockman87 is offline   Reply With Quote
Old 07-15-2008, 06:25 PM   #2 (permalink)
Jr. Member
 
SimReality's Avatar
 
Join Date: May 2008
Posts: 410
Reputation: 60
Default

I've never had any issues with my touch pad. Have you tried using the None value for the dead zone? Sometimes I find that helps a lot with the touch pad. But even without it I rarely ever see issues with the input.

Also, Connect is not a forum; if you want to just discuss things, go to http://forums.xna.com. Connect is a place strictly for bugs; not for discussions. Lots of the XNA team read the forums so it's likely you'll still get good discussion there where it is a lot more appropriate for something like this.

Edit: Let me try rephrasing that since I don't think I did a good job. I'm not trying to say you shouldn't also file it on Connect, but Connect isn't really the place to have the discussion. So file it on Connect, discuss it on http://forums.xna.com. Not only then is it more appropriate for discussion, but then it is far more likely you'll get input from other community members (since very few ever go to Connect).

Last edited by SimReality : 07-15-2008 at 06:28 PM.



SimReality is offline   Reply With Quote
Old 07-15-2008, 07:05 PM   #3 (permalink)
Experienced Zuner
 
Rockman87's Avatar
 
Join Date: Nov 2007
Location: UT, USA
Posts: 199
Reputation: 25
Send a message via MSN to Rockman87
Default

None works just as well as circular, but it doesn't reconize what axis it is on so it only draws my horizontal sprites because they are the last ones to draw. With the default... All four directions are drawn.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




Rockman87 is offline   Reply With Quote
Old 07-15-2008, 07:13 PM   #4 (permalink)
Jr. Member
 
The Undead's Avatar
 
Join Date: May 2008
Posts: 325
Reputation: 91
Default

one way to tell if it is going up is to have two variables and make the last location var2 and the new loc var1 then if var1 is less than var2 then it is going up otherwise it ios going down.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



The Undead is offline   Reply With Quote
Old 07-16-2008, 09:05 AM   #5 (permalink)
Zuner
 
CouchPotato99's Avatar
 
Join Date: May 2008
Posts: 75
Reputation: 53
Default

I'm not quite sure what your problem is... What is the touchpad not doing that you want it to?

And also, to set your own dead zone (although I have never done it) I would assume that you do something like this:

Vector2 touch = GamePad.GetState(PlayerIndex.One, GamePadDeadZone.None).ThumbSticks.Left;
if (touch.X < 0.1 && touch.X > -0.1) touch.X = 0.0;

Last edited by CouchPotato99 : 07-16-2008 at 09:37 AM. Reason: grammar...




CouchPotato99 is offline   Reply With Quote
Old 07-16-2008, 09:40 AM   #6 (permalink)
Experienced Zuner
 
Rockman87's Avatar
 
Join Date: Nov 2007
Location: UT, USA
Posts: 199
Reputation: 25
Send a message via MSN to Rockman87
Default

I use the touch pad to move a character in the game... Sometimes while moving and switching directions really fast it stops moving the direction you need to go. Then if you move your finger on that direction your character just sits there. You slide your finger to another direction before you can go the direction that stopped working.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




Rockman87 is offline   Reply With Quote
Old 07-16-2008, 10:19 AM   #7 (permalink)
Zewbie
 
Join Date: Jul 2008
Posts: 8
Reputation: 16
Default

Why not dump the thumbstick data to the screen? Like print out "X: 0.0, Y: 0.0" and then when your game becomes unresponsive, you can see if the touchpad really stopped returning values. If it didn't maybe its just a bug in your code...

Since you keep describing the problems in relation to your game, I would say its at least possible that it is a program bug, and not a bug with the xna framework. Or, maybe it's just your zune... or maybe the game is lagging or something?

Anyway good luck fixing your issue!



omegagames is offline   Reply With Quote
Old 07-16-2008, 04:14 PM   #8 (permalink)
Experienced Zuner
 
Rockman87's Avatar
 
Join Date: Nov 2007
Location: UT, USA
Posts: 199
Reputation: 25
Send a message via MSN to Rockman87
Default

Quote:
Originally Posted by omegagames View Post
Why not dump the thumbstick data to the screen? Like print out "X: 0.0, Y: 0.0" and then when your game becomes unresponsive, you can see if the touchpad really stopped returning values. If it didn't maybe its just a bug in your code...

Since you keep describing the problems in relation to your game, I would say its at least possible that it is a program bug, and not a bug with the xna framework. Or, maybe it's just your zune... or maybe the game is lagging or something?

Anyway good luck fixing your issue!
I will check the values like you said... that is a good idea

My game is not the only game with this problem. All the space shooters with touch have this same issue.

[EDIT] I had all the values display on the screen. When you loose responsiveness, the input coming from the zunepad is 0. I checked for lag...there is no lag. I did get it to recognize 4 different direction in circular mode. Thanks for the help.

[EDIT2]DISCOVERY...I think I found a way to make the zune pad more responsive. I changed a few things in my code, but this change seemed to make the zunepad 95% more responsive. Round the values that the thumsticks method returns to one decimal place. This fixed the problem in my game. There are still times it will loose it if you swipe extremely fast in opposite directions. But, we can't help that. I am still using the Independant Deadzone, but circular works great too.
Code:
gamepadStatus = GamePad.GetState(PlayerIndex.One);
            yState = Math.Round(gamepadStatus.ThumbSticks.Left.Y, 1);
            xState = Math.Round(gamepadStatus.ThumbSticks.Left.X, 1);
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Last edited by Rockman87 : 07-16-2008 at 07:57 PM. Reason: Update




Rockman87 is offline   Reply With Quote
Old 07-21-2008, 08:25 PM   #9 (permalink)
Experienced Zuner
 
Rockman87's Avatar
 
Join Date: Nov 2007
Location: UT, USA
Posts: 199
Reputation: 25
Send a message via MSN to Rockman87
Default

We are tracking some bugs internally regarding input and the default deadzone and hoping to adjust it. Hopefully these take care of any issue you are seeing with the responsiveness of the input. Thanks again for your feedback.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.




Rockman87 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -8. The time now is 08:37 PM.

 
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC8
vB Ad Management by =RedTyger=
(C) ZuneBoards 2006-2007
Copyright © 2006 - 2008 Zune Boards | About Zune Boards | Legal | A member of the Crowdgather Forum Community