/// <summary>Gets raw controller input data from the system. Note that /// not all buttons provided here are guaranteed to be present on the /// user's physical controller. Controllers are also not guaranteed to /// be available on the system, and are never simulated.</summary> /// <param name="handed">The handedness of the controller to get the /// state of.</param> /// <returns>A reference to a class that contains state information /// about the indicated controller.</returns> public static Controller Controller(Handed handed) { Marshal.PtrToStructure(NativeAPI.input_controller(handed), controllers[(int)handed]); return(controllers[(int)handed]); }