events

events

volume up key

volume down key

volume up key (long)

volume down key (long)

power button (long)

pinch open (by to fingers)

pinch closed (by to fingers)

rotate counter-clockwise (by to fingers)

rotate clockwise (by to fingers)

Two-finger touch on desktop

Two-finger long-press on desktop

Two-finger double touch

https://www.google.com/design/spec/patterns/gestures.html#gestures-touch-mechanics

LL action:

open quick settings

open recent apps

hide/show selected panel

voice search (google cards/ google now)

show power menu

volume down

volume up

zoom in

zoom out

]]>

9 Commentsto events

  1. Anonymous says:

    < ![CDATA[

    for example, i will like set volume button up/down to zoom in/out, after long tap doing volume up / down. and pinch in for show/hide panel (as dockbar), pinch out show user menu. This is only example…

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Personally I use my volume keys purely for volume. Single tap for minor changes and long tap for serious changes. In a case such as this post ID like to add that there should be an option to choose what happens when you play with the volume buttons hehe. Sadly I don’t really have a use for any bug fixes or features right now because I’m getting a new tablet anyway.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Danbar Danbar​ as for double tapping the home button or tapping home followed by tapping back I use Home2 shortcut for that. It acts as a launcher loader too.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Home key long is not possible.


    Double tap on item is not implemented because it would slow down single tap actions. There is a script for it though.


    Volume keys are theoretically possible, but has annoying side effects.


    Pinch is reserved for zoom. There is a script for that too.



    Actions are all possible afaik.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    i know, many option can by realised by script (double tap on item – i use, show/hide panel, show recent apps). But user must use scripting.


    Some option is in standard gesture or action in other launchers. I mean, for normal user (not programmer) are this settings better than scripting.



    Pinch is reservet for zoom, i know, but why isnt option set different use? In LL is everything possible…



    Long tap to home button. This can be set! I use GravityBox (modul from xposed installer). In this module i can set this hardware button:


    tap to menu key, long tap to menu key, double tap to menu key,   long tap to home key, double tap to home key, tap to back key, long tap to back key, double tap to back key.


    In gravity isnt option set home key, because many lauchers have this option. And i know, on some device cannot this work directly in LL.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Long tap home button is a dedicated device event, the same as tap/long tap power button (if I’m not wrong)


    This means that apps can’t react to those events, because they are never sent.


    Unless of course you are root and you set it from the Rom settings (or a module)

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Curtis Sylvester Jr.​



    For double tap I use this script. But I doing small edit from original. Tap doing nothing, double tap run app.



    /* About the script


    * Purpose : This is a script to allow custom tap/double tap


    * Author : TrianguloY


    * Link: https://plus.google.com/u/1/105066926163073195690/posts/3EmnQshjVr9


    */



    //time in milliseconds between clicks


    var delta = 250;



    function singletap(){



    //action to execute in single tap


    LL.goToDesktop(LL.getHomeDesktop().getId());



    }



    function doubletap(){



    //action to execute in double tap


    item.launch();



    }






    var event=LL.getEvent();


    var item=event.getItem();


    var id=item.getId();


    var time=event.getDate();



    var data = JSON.parse(LL.getScriptTag())||[-1,-1];



    if(data[0]==id && time < ( data[1] + delta) ){


    LL.setScriptTag(null);


    doubletap();


    }else{


    LL.setScriptTag(JSON.stringify([id,time]));


    setTimeout(function(){data2=JSON.parse(LL.getScriptTag())||[-1,-1];if(data2[0]==id&&data2[1]==time)singletap();},delta);


    }

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Danbar Danbar of course gravitybox can do that, but that’s because it is an xposed module, which Lightning is not, and probably will never be.

    ]]>

  9. Anonymous says:

    < ![CDATA[

    i never needed a script because my tablet needed a launcher loader anyway just to keep lightning launcher as default.   Home2 Shortcut acted as a launcher loader but it had HOME  double-tap as well as a few other actions

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *