Ok, I till try to get this working one step at a time. The first part I tried is to try to activate speaker and eyes using L3. I added this code to PS2 control.
Code:
PTMode con 5
;PTMode
IF (DualShock(1).bit1 = 0) and LastButton(0).bit1 THEN ;L3 Button test
sound cSpeakerPin, [50\1000]
IF ControlMode <> PTMode THEN
ControlMode = PTMode
IF (SelectedLeg=255) THEN
ELSE
ControlMode = SingleLegMode
ENDIF
ENDIF
ENDIF
;[PTMode]
IF (ControlMode=PTMode) THEN
pause 100
sound cSpeakerPin, [50\2000]
low cEyesPin
pause 100
sound cSpeakerPin, [50\4000]
high cEyesPin
ENDIF
What I am seeing is it seems to detect the button push, it stops the walking mode, but it doesn't activate sound or eyes. So i am not sure why it doesn't get to the PTMode.
The second problem is it will not exit the PTMode by pressing L3 again, it will exit to a different mode so I think it is not detecting lastbutton. Thanks for any help.