The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by goranth]

The class Input sensor and its derived classes in the Book only sense AWT
inputs.

But I will "sense" inputs(object positions and rotations) returned from a call
to a simultaneously running simulation instead.

I would be thankful if somebody can give code example on how to integrate such
a functionality to the apps Actuators with code Actuators.java in the Book?

Best regards, Goran
import-bot (20211) [Avatar] Offline
#2
Re: Input sensors
[Originally posted by author]

All the event interfaces in the "control chain" (from input to actuator) are
exposed. You simply generate your own events anywhere in the control chain
that is convenient. In other words, anyone or anything can generate an event.
They don't have to originate from the InputSensor classes.

--jon

> The class Input sensor and its derived classes in the Book only sense AWT
> inputs.
>
> But I will "sense" inputs(object positions and rotations) returned from a call
> to a simultaneously running simulation instead.
>
> I would be thankful if somebody can give code example on how to integrate such
> a functionality to the apps Actuators with code Actuators.java in the Book?
>
> Best regards, Goran