Pretty straight forward question. I’ve got all keyboard and mouse events working fine except the mousewheel which seems to be consumed by the camera. For reference this is how I’m handling inputs so I might be doing something wrong with regards to the arcrotatecamera specifically.
DeviceSourceManagerConfig() {
this.SetDSM(new this.graphics.Devices.DeviceSourceManager(this.GetGraphics().engine))
this.GetDSM().onDeviceConnectedObservable.add((device) => {
if (device.deviceType === this.GetGraphics().Devices.DeviceType.Keyboard) {
device.onInputChangedObservable.add((event) => {
this.setInputsFromKeyCode(event)
})
}
if (device.deviceType === this.GetGraphics().Devices.DeviceType.Mouse) {
device.onInputChangedObservable.add((event) => {
this.setInputsFromKeyCode(event)
console.log(event)
})
}
})
}
The console.log outputs everything except the mousewheel events. Should I be trying to access them some other way?
Thanks in advance.