Page 1 of 1

Simple flashlight app

Posted: Sat Feb 10, 2018 2:21 pm
by taateli05
Hey Love2d community! I'm just wondering, that could I make a simple flashlight app for android, but I have no idea, how to do the most critical part of actually turning the flashlight on? Like for android I'd make it something like: Press the screen to toggle on/off flashlight. I think it could be pretty dang simple but the turning on flashlight is just bothering me. I dont believe that that kind of functionality has been built-in to Löve, but maybe there is a Lua way to go.

-Sanyeri

Re: Simple flashlight app

Posted: Sun Feb 11, 2018 12:05 am
by raidho36
No there isn't anything of the sort. You can try your luck with FFI, hook up to Android OS and call system function to activate the flashlight.