Skip to content

RFC: Utility functions

Rylie Pavlik requested to merge rpavlik/monado:utility-functions into master

This quick improvement was prompted by a user question. The actual PSVR driver part of this isn't quite right/doesn't quite do what we want, but I'm curious if we think this is worth having for this and other purposes. (E.g. we could put pairing psmoves in the same framework, etc.)

Sample usage:

image

Questions:

  • Do we want to specify device by number or by role? or by name string? Right now, it's by number.
  • Do we want to be able to take any parameters? Right now, we take none, so we just add another method if we want to parameterize (e.g. on vs off are two methods instead of one with a parameter)
  • Any way to indicate to the device creation function that we're in a utility mode, in case it wants to skip some startup? e.g. the PSVR always turns on and waits for VR mode, but that might not be desired.

cc @wallbraker

Merge request reports