Ubuntu 14.04.2 gamepad doesn't work

Which engine version are you using? The proper fix only appeared in 4.8.