Currently, the forced coercion from a read into the Guitar Hero or Mad Maestro controllers require you to access raw parts of the ControllerData union. While this is safe from crashing the app, users shouldn't need to know how to do this or do their own error checking.
So! We should do that for them. Ideally with a safety check that the controller identifier matches the device they're trying to coerce.
After this is done, gh and b fields of the union should be made private again.
Currently, the forced coercion from a read into the Guitar Hero or Mad Maestro controllers require you to access raw parts of the
ControllerData
union. While this is safe from crashing the app, users shouldn't need to know how to do this or do their own error checking.So! We should do that for them. Ideally with a safety check that the controller identifier matches the device they're trying to coerce.
After this is done,
gh
andb
fields of the union should be made private again.