hid: remove underscores

This commit is contained in:
averne 2019-01-27 22:43:12 +01:00 committed by fincs
parent be873292fc
commit 193ee79b5b

View File

@ -600,13 +600,13 @@ typedef struct HidVibrationValue
float freq_high; ///< High Band frequency in Hz. float freq_high; ///< High Band frequency in Hz.
} HidVibrationValue; } HidVibrationValue;
static inline u32 _hidControllerIDToOfficial(HidControllerID id) { static inline u32 hidControllerIDToOfficial(HidControllerID id) {
if (id < CONTROLLER_HANDHELD) return id; if (id < CONTROLLER_HANDHELD) return id;
if (id == CONTROLLER_HANDHELD) return 0x20; if (id == CONTROLLER_HANDHELD) return 0x20;
return 0x10;//For CONTROLLER_UNKNOWN and invalid values return this. return 0x10;//For CONTROLLER_UNKNOWN and invalid values return this.
} }
static inline HidControllerID _hidOfficialToControllerID(u64 id) { static inline HidControllerID hidOfficialToControllerID(u64 id) {
if (id < 8) return id; if (id < 8) return id;
if (id == 0x20) return CONTROLLER_HANDHELD; if (id == 0x20) return CONTROLLER_HANDHELD;
return CONTROLLER_UNKNOWN; return CONTROLLER_UNKNOWN;