vbt
Staff member
Actually I use this on all dev i did :
But it gives some problems when you have to handle a single push. Is there something to do to change that behavior ? The main target is to add/fix Pause button, game selection in SMS plus and also on other things I did.
if(( device = PER_GetDeviceR( &__port[0], 0 )) != NULL )
{
pltriggerE[0] = pltrigger[0];
pltrigger[0] = PER_GetTrigger( device );
pltriggerE[0] = (pltrigger[0]) ^ (pltriggerE[0]);
pltriggerE[0] = (pltrigger[0]) & (pltriggerE[0]);
for(i=0;i<11;i++)
{
if((pltrigger[0] & pad_asign)!=0)
{
switch(pltrigger[0] & pad_asign )
{
case PER_DGT_U:
temp &= ~0x01;
break;
case PER_DGT_D:
temp &= ~0x02;
break;
case PER_DGT_L:
temp &= ~0x04;
break;
But it gives some problems when you have to handle a single push. Is there something to do to change that behavior ? The main target is to add/fix Pause button, game selection in SMS plus and also on other things I did.