If you look in the User Manual for PTZ Camera Control Plugin (https://documentation.rossvideo.com/files/Manuals/Cameras/PivotCam/User_Manual_for_PTZ_Camera_Control_Plugin_(8351DR-015).pdf) on pages 74 & 75, there is a list of most of the commonly used camera functions that you might want to access from your joystick buttons, including the correct mode and values to set in the DashBoard Game Controller configuration panel.
You mention focus near/far which is not on the list in the manual. Focus is a velocity-based control, but you could set up two buttons to adjust focus at a fixed velocity by setting. These would have the effect of continuing to adjust focus for as long as you held the button down. You can do the same thing with ptzjoystick.vel.zoom for zoom.
- Mapped OID: ptzjoystick.vel.focus
- Action: Stateless
- Value: - your desired velocity (in range 1 to 7). Set one button with a positive value and the second button with a negative value.
Here is a screenshot of focus set up on my DashBoard

#DashBoard