Changed handling of device.numButtons to string, due to exisint Enerwave handler.