/* * Return the number of buttons for this Joystick::Device object. * * Aliases: * Joystick::Device#num_buttons * * Example: * puts "This joystick has #{joy.buttons / 2} buttons." * */ static VALUE j_dev_buttons(VALUE self) {