|
| | InputMgr (World *pWorld) |
| | Construct a router for one world.
|
| void * | operator new (size_t nSize) |
| | Allocate a router from the pool heaps under the tag "InputMgr".
|
| | ~InputMgr () override |
| | Release the router.
|
| void | Poll () |
| | Route the controller input of one frame to the world.
|
| void | RepeatRotation (int nPad) |
| | Repeat the rotation of a controller once each repeat interval after the initial delay.
|
| bool | HandleButton (JoypadInputMsg *pMsg) |
| | Turn a button of a controller into the input event of its bound action.
|
| bool | DispatchPriv (Message *pMsg) override |
| | Act on a message sent to the router.
|
| void * | operator new (size_t nSize) |
| | Allocate a sink from the pool heaps under the tag "MsgSink".
|
| void | operator delete (void *pBlock) |
| | Return a sink to the pool heaps.
|
| virtual | ~MsgSink () |
| virtual bool | Dispatch (Message *pMsg) |
| | Accept a message.
|
| void * | operator new (size_t size) |
| | Allocate from the main heap under the name MsgSink.
|
| void | operator delete (void *mem) |
| | Return memory to its heap.
|
| virtual | ~MsgSink () |
| | Destroy the sink.
|
| virtual bool | Dispatch (Message *msg) |
| | Handle a message.
|
Router of controller input to a running world.
The RTTI records the class as deriving from MsgSink. The object is 0x34 bytes, and WorldMgr allocates it under the tag "InputMgr". The router turns each button of a controller into the input event of its bound action, repeats a rotation while its button is down, and passes the analogue sticks to the world every frame.