sneg74ok
-
Content Count
2 -
Joined
-
Last visited
Posts posted by sneg74ok
-
-
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.
How to intercept the bluetooth joystick button press when the screen is locked.
in Cross-platform
Posted
Thanks for suggestion but I don't want unlock screen. I just want receive message about button was pressed.
This app have to works like audio player, in the background.
And when the joystick button is pressed, the player have to shift forward two seconds.