Thanks for the reply!
I fixed what I wanted in another way. I simply decided to initiate a metro object on the PD patch whenever one of the buttons of the joystick is pressed. The metro object will trigger a counter which will stop whenever the button is released. This way I accomplished what I was looking for. I just wrote it for the sake of those few people who might be looking for the same thing.
Cheers