i use a ps2 controller also using joybox 5

now, show me the code you are using. to check if normal axis are input you do:

if (isup in dxinput1.states)then
begin
...movement here for up....

also, make sure at the start of your code in the timer (ontimer) you have dxinput1.update;

for buttons 1 to 12 on a ps2 joypad it is the same:

isbutton1 in dxinput1.states for triangle for example

this UPDATES the states, without it, the code is as good as useless