Exemple #1
0
string Intensity::GetSpecificAxisName(e_controller_type type)
{
  string name = controller_get_specific_axis_name_from_index(type, m_Axis);
  if(name.find("stick", 0) == 1)
  {
    // "rstick x" -> "rstick"
    // "rstick y" -> "rstick"
    // "lstick x" -> "lstick"
    // "lstick y" -> "lstick"
    name = name.substr(0, 6);
  }
  return name;
}
Exemple #2
0
string ControlMapper::GetSpecificAxisName(e_controller_type type, s_axis_props axis_props)
{
    return controller_get_specific_axis_name_from_index(type, axis_props);
}