I'm trying to use only the input part of Phoenix for a GLScene project... Is this possible?
I've created the phxInput and set a key...
Code:
Player := TphxInput.Create;
Player.Keyboard.KeyBindings[isButton1]:= KeyBinding(VK_SPACE);
And then in the GLScene timer(TGLCadencer), which is constantly triggering, I put:
Code:
Player.Update;
If isButton1 in Player.Keyboard.States Then ShowMessage('OMG');
Yet nothing happens.
If I write "Player.Keyboard.States := Player.Keyboard.States + [isButton1]" right before checking for the button, I get the ShowMessage.
I'm quite the noob to Phoenix(though I've used DelphiX quite a bit), so I'm probably making some simple mistake...
Bookmarks