am/lbl/hid/pctl: Enabled VR Rendering (#1688)
* am/lbl/hid/pctl: Enabled VR Rendering This PR enable VR rendering on games which support it through the Toy-Con VR Goggles. Please remember Ryujinx currently don't support console SixAxis sensor and for now, in some games, the view can't be moved. Everything is implemented accordingly to RE: - am: ICommonStateGetter: SetVrModeEnabled, BeginVrModeEx, EndVrModeEx. - lbl: ILblController: SetBrightnessReflectionDelayLevel, GetBrightnessReflectionDelayLevel, SetCurrentAmbientLightSensorMapping, GetCurrentAmbientLightSensorMapping, SetCurrentBrightnessSettingForVrMode, GetCurrentBrightnessSettingForVrMode, EnableVrMode, DisableVrMode, IsVrModeEnabled. - pctl: IParentalControlService: ConfirmStereoVisionPermission, ConfirmStereoVisionRestrictionConfigurable, GetStereoVisionRestriction, SetStereoVisionRestriction, ResetConfirmedStereoVisionPermission, IsStereoVisionPermitted. - hid: IHidServer: ResetSevenSixAxisSensorTimestamp is stubbed because we don't support console SixAxisSensor for now. Maybe we could add a setting later to enable or disable VR. But I think it's fine to keep this always available since you have to enable it in games. * Fix permission flag check * Address gdkchan feedback
This commit is contained in:
parent
4bc4cacdd0
commit
313f8d2eb6
6 changed files with 337 additions and 13 deletions
|
@ -7,8 +7,10 @@
|
|||
|
||||
Success = 0,
|
||||
|
||||
FreeCommunicationDisabled = (101 << ErrorCodeShift) | ModuleId,
|
||||
InvalidPid = (131 << ErrorCodeShift) | ModuleId,
|
||||
PermissionDenied = (133 << ErrorCodeShift) | ModuleId
|
||||
FreeCommunicationDisabled = (101 << ErrorCodeShift) | ModuleId,
|
||||
StereoVisionDenied = (104 << ErrorCodeShift) | ModuleId,
|
||||
InvalidPid = (131 << ErrorCodeShift) | ModuleId,
|
||||
PermissionDenied = (133 << ErrorCodeShift) | ModuleId,
|
||||
StereoVisionRestrictionConfigurableDisabled = (181 << ErrorCodeShift) | ModuleId,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue