local touch_db_fn = nil
local touchfns = { }
local touchfnix = 1
+local dimonly = false
if touchcolor == nil then touchcolor = 40 end
if touchlastfn == nil then touchlastfn = "fill" end
touch_db_blackout = tq:queue(300,onblackdebounce)
end
- if not isblackout then
+ -- XXX front left: dim the display
+ if bit.isset(down,4) then
+ dimdisplay()
+ -- Don't claim the image, just dim whatever is currently on the screen.
+ dodraw()
+ end
+
+ if not isblackout and not dimonly then
-- front right buttons: local color wheel
if bit.isset(down,1) then
-- go forward quickly or slowly
end
end
- -- XXX front left: dim the display
- if bit.isset(down,4) then
- dimdisplay()
- claimfb()
- end
-
-- XXX left side front button
if bit.isset(down,5) then
end