}
//if no new request the pad return 0xff, for signaling connected
- if (reqPos >= respSize) return 0xff;
+ if (reqPos >= respSize
+ && writeok
+ ) return 0xff;
switch(reqPos){
case 2:
//mem the vibration value for Large motor;
pad[port].Vib[1] = value;
- if (in_type[port] == PSE_PAD_TYPE_STANDARD &&
- in_type[port] == PSE_PAD_TYPE_NEGCON)
+ if (in_type[port] != PSE_PAD_TYPE_ANALOGPAD)
break;
//vibration