Support profiles

This commit is contained in:
Manish Goregaokar 2020-01-13 15:31:31 +05:30
parent 9c34a6585b
commit e0135fe783
10 changed files with 40 additions and 17 deletions

View file

@ -205,13 +205,16 @@ impl FakeXRDeviceMethods for FakeXRDevice {
None
};
// XXXManishearth deal with profiles, supportedButtons, selection*
let profiles = init.profiles.iter().cloned().map(String::from).collect();
// XXXManishearth deal with supportedButtons and selection*
let source = InputSource {
handedness,
target_ray_mode,
id,
supports_grip: true,
profiles,
};
let init = MockInputInit {