Simple flashlight app

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
taateli05
Prole
Posts: 7
Joined: Sat Jun 27, 2015 1:31 pm

Simple flashlight app

Post 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
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Simple flashlight app

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests