Fix handling of integer velocities in Ruby 1.9
Fix handling of integer velocities in Ruby 1.9

It's assumed that flags have already been taken care of if we've
been passed a non-hash (probably Integer).

This fixes examples/color_picker.rb

MrJoy/surface_master,thomasjachmann/launchpad