Code: Select all
event bool KeyEvent( EInputKey Key, EInputAction Action, FLOAT Delta )
Code: Select all
event bool KeyEvent( EInputKey Key, EInputAction Action, FLOAT Delta )
That function is called by the engine in case of an input event so that UScript programmers can react on what the player is doing. If there is more than one instance of the class Console, the function should be called at those instances, too.// Called by the engine when a key, mouse, or joystick button is pressed
// or released, or any analog axis movement is processed.
That's what I want, but it doesn't get called.Barbie wrote:If there is more than one instance of the class Console, the function should be called at those instances, too.
Code: Select all
class InputCapture extends Mutator;
event PostBeginPlay() {
local TestWindow testWindow;
local UWindowRootWindow root;
testWindow = new class'TestWindow';
root = new class'UWindowRootWindow';
root.Console = testWindow;
testWindow.root = root;
}
Code: Select all
class TestWindow extends WindowConsole;
event bool KeyEvent( EInputKey Key, EInputAction Action, FLOAT Delta ) {
Log(Key@Action);
return true;
}
state UWindow {}