forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Eight way pad

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
my psprecious



Joined: 17 Feb 2006
Posts: 24

PostPosted: Sun Mar 12, 2006 7:57 pm    Post subject: Eight way pad Reply with quote

Is it possible to make the analog stick react more like a 8 way pad

\ | /
-- -- <-----like this
/ | \
Back to top
View user's profile Send private message
liquidjin



Joined: 19 Feb 2006
Posts: 12

PostPosted: Mon Mar 13, 2006 11:25 am    Post subject: Reply with quote

I did it in LITEspeed. However because of how stiff the analog is, it still is quite hard to hit the diagonals consistently.

Just cut pie slices into the circular range that the analog is capable of hitting (-255 - 255) like you did in your drawing. And if the the analog falls within one of those 8 pies then have it do the action you want it to do.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group