Create class DuneGamepad (js)