Hello,
The compiler seems to generate odd hints:
Local absolutevar "FPC_BLOCK_SELF" is not used
Here's the code.
if Assigned(gc.extendedGamepad) then
gc.extendedGamepad.setValueChangedHandler(GamePadChange)
else if Assigned(gc.gamepad) then // <-- hint here
gc.gamepad.setValueChangedHandler(GamePadChange);
gc.setControllerPausedHandler(PauseHandler); // <--hint hereWhy?
PauseHandler and GamePadChange are procedures:
procedure GamePadChange(pad: GCGamePad; el: GCControllerElement);
procedure PauseHandler(gc: GCController);thanks,
Dmitry
