The joy package contains joy_node, a node that interfaces a generic joystick to ROS 2. This node publishes a "Joy" message, which contains the current state of each one of the joystick's buttons and axes.
conda install robostack-jazzy::ros-jazzy-joy