max:max];
} else if (usage == kHIDUsage_GD_Hatswitch) {
action = [[JSActionHat alloc] init];
} else if (usage >= kHIDUsage_GD_X && usage <= kHIDUsage_GD_Rz) {
// TODO(jfw): Scaling equation doesn't seem right if min != 0.
max:max];
} else if (usage == kHIDUsage_GD_Hatswitch) {
action = [[JSActionHat alloc] init];
} else if (usage >= kHIDUsage_GD_X && usage <= kHIDUsage_GD_Rz) {
// TODO(jfw): Scaling equation doesn't seem right if min != 0.