How can I use Joystick responses (Approach Avoid Task_AAT)

OS (e.g. Win10): win 10
PsychoPy version (e.g. 1.84.x): 2022.1.2
**joystick model: Logitach Extreme 3D pro Joystick

What are you trying to achieve?:

I am working on an approach avoidance task with a joystick as response.

But, I don’t know joystick response setting used Builder and Python Code

I looked for a joystick setting, related code at this site, but I couldn’t understand explanation exectly

What did you try to make it work?:

I trying to achieve image loof, image is divided 2 border color (Blue, Green)

this image is already presented setting as random

I want to do the joystick movements the presented picture should increase or decrease in size

ex) when Blue border color image is presented, participant have to push the joystick ( ↑ )
→ decrease in size
when Green border color image is presented, participant have to pull the joystick ( ↓ )
→ increase in size

Also, I want to make wrong message
(if joystick diretion is wrong, massage = wrong)

I show you the photo file to help you understand

please, help me

Thank you for reading this long message