selectGamepad method

Future<bool> selectGamepad(
  1. int id
)

Implementation

Future<bool> selectGamepad(int id) async {
  try {
    var res = await WinGamepad.selectGamepad(id);
    deviceIndex = id;
    return res;
  } on Exception {
    return false;
  }
}