Jump to content

sneg74ok

Members
  • Content Count

    2
  • Joined

  • Last visited

Posts posted by sneg74ok


  1. Hi All!
    I have a joystick that is connected to my phone.
    When my application is running a can see than joysticks buttons are pressing.
    But when the phone screen is locked, I don't see notifications about it in my app.
    What can I do to receive joystick button press in my application when the screen is locked?

     

    Receivers code

    procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; var KeyChar: Char; Shift: TShiftState);
    begin
      inc(i);
      Memo1.Lines.Add('i=' + IntToStr(i) + '; Key=' + IntToStr(Key));
    end;

    The result of the application, photos of joysticks and the source code are in the attachment.

    87.jpg

    16.PNG

    KeyCodeReceiver.7z

×