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 

Disable Buttons

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



Joined: 03 Feb 2010
Posts: 3

PostPosted: Wed Feb 03, 2010 6:44 pm    Post subject: Disable Buttons Reply with quote

How do I disable L and R Trigger?
Code:

if(( pad.Buttons & PSP_CTRL_LTRIGGER ))
{
   //disable L Trigger
}

if(( pad.Buttons & PSP_CTRL_RTRIGGER ))
{
   //disable R Trigger
}


How do I disable Select button?
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Wed Feb 03, 2010 6:55 pm    Post subject: Reply with quote

Pull the wires off?
Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
NintendoBoy13



Joined: 18 Jan 2010
Posts: 6

PostPosted: Wed Feb 03, 2010 7:32 pm    Post subject: ? Reply with quote

What do you mean disable it? Just don't include the code to use it...
_________________
Yes I can, but then again why should I?
Back to top
View user's profile Send private message
WalangAlam



Joined: 03 Feb 2010
Posts: 3

PostPosted: Wed Feb 03, 2010 8:27 pm    Post subject: Reply with quote

Jim wrote:
Pull the wires off?
Jim

which one red or blue? I might set off the bomb :(.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu Feb 04, 2010 5:37 am    Post subject: Reply with quote

Hook the sceCtrl* syscalls to disable them in games. vshCtrl* for XMB.
For kernel buttons like volume, note etc and plugins you need to hook the kernel versions of the sceCtrl* functions.
Back to top
View user's profile Send private message
WalangAlam



Joined: 03 Feb 2010
Posts: 3

PostPosted: Thu Feb 04, 2010 10:11 am    Post subject: Reply with quote

Torch wrote:
Hook the sceCtrl* syscalls to disable them in games. vshCtrl* for XMB.
For kernel buttons like volume, note etc and plugins you need to hook the kernel versions of the sceCtrl* functions.


thanks Torch.

is danzel updated his RemaPSP? got the source code and will use it as an example

any updated hb similar to RemaPSP?
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 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