Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse control multipliers fix #226

Merged

Conversation

adnanmunawar
Copy link
Member

With this PR, users can set optional mouse control multipliers in the relevant camera description in the ADF files. These multipliers are camera-specific, and any specifier is optional. For example:

cameras: [camera1, camera2]

camera1:
  namespace: cameras/
  name: cam1
  location: {x: 4.0, y: 0.0, z: 2.0}
  look at: {x: 0.0, y: 0.0, z: -0.5}
  up: {x: 0.0, y: 0.0, z: 1.0}
  clipping plane: {near: 0.1, far: 10.0}
  field view angle: 0.8
  monitor: 0
  mouse control multipliers: {pan: 1.0, rotate: 1.0, scroll: 1.0, arcball: 1.0} # <--- All Optional multipliers set

camera2:
  namespace: cameras/
  name: cam2
  location: {x: 4.0, y: 0.0, z: 2.0}
  look at: {x: 0.0, y: 0.0, z: -0.5}
  up: {x: 0.0, y: 0.0, z: 1.0}
  clipping plane: {near: 0.1, far: 10.0}
  field view angle: 0.8
  monitor: 0
  mouse control multipliers: {pan: 1.0, arcball: 10.0} # <--- Some Optional multipliers set. Others assumed to be 1.0

@adnanmunawar adnanmunawar merged commit f85f44b into WPI-AIM:ambf-2.0 Jan 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant