experts advices for modify my unit button joystick state (which works) lazarus / 21-General ---------------------------------------------------------------------- LaurentDelaon · 2022-04-29 08:18 Hi Hi everybody, I want modify my code. It's a use of joystick via SdpoJoystick. I have make an unit wich deal button states (short hint, long hint, rise,fal,time_pressl etc...) But it's separate each oher. Could you help me to join them together ? And also critcs my code. I also have a pb with variable idxButton:value isn't  send via function. buti it's working with a declaraiton variable out implementation... thank's. Laurent.