Sacchan-VRC / SaccFlightAndVehicles

Other
109 stars 25 forks source link

Make DFUNCP_TakeControl selectable by KeyboardInput #45

Closed esnya closed 1 year ago

esnya commented 1 year ago

When other DFUNCPs are present, we have to them disabled initially for VR users. But there are no way to activate the function from passenger with SAV_KeyboardControls because DFUNCP_TakeControl does not accept an event KeyboardInput.

If you don't register this with SAV_KeyboardControls, there should be no change in behavior.

This PR makes DFUNCP_TakeControl selectale for desktop users like DFUNC_GUN. Considering overheads of Udon variable access and reusability, I think this feature should be added into SaccEntity.