mouse bindkeys to spacebar

Discussion in 'Cadence' started by gary, Apr 6, 2010.

  1. gary

    gary Guest

    I injured my right hand and am having a little trouble clicking. I
    want to push these mouse functions to spacebar and spacebar
    combinations like Ctrl-spacebar.

    There is a farely standard bindkey file that I am using that goes
    something like this

    hiSetBindKeys( "Layout" list(
    list("<DrawThru1>" "geSingleSelectBox()"
    "geSingleSelectBox()") ;EF
    ))

    I am not sure I am quite understanding it, specifically, what is the
    Enter Function? and how does someone use it in the bindkey file?

    In the above example, it seems the first function geSingleSelectBox()
    seems to be the skill command used when you haven't yet called a
    command, for instance hiZoomIn(). The second call (to the left
    of ;EF), I think is when you are in a function already like hiZoomIn
    and the function needs some more input??

    Also, does someone know what I can use for Spacebar, shift-spacebar,
    ctrl-spacebar, etc, in the bindkey file. I was messing around and
    believe the "<key>Space" will work for spacebar, but other ones like
    "Shift<Key>Space" do not seem to work
     
    gary, Apr 6, 2010
    #1
  2. gary

    Guest Guest

    An enterfunction is a command that typically takes mouse input, such as when
    you are moving an object, or stretching an object, or drawing an object, or
    copying an object. The "EF" command is what the bindkey will execute during
    the enterfunction, as opposed to the "normal" command that is executed when
    not in an enterfunction. If nothing is defined for the enterfunction command,
    then the "normal" command will be executed during the enterfunction, also.
    Try "space" instead of "Space". The key names are case sensitive, and the
    printable character keys (yes, "space" is technically a "printable character")
    typically use lowercase names ("comma", "space", "period").

    One way to get the name is to use xmodmap (which will be in /usr/openwin/bin
    on a Sun system, or /usr/X11R6/bin on most other systems) as follows:

    # xmodmap -pke | grep -i space

    -Pete Zakel
    ()

    "Cancel me not -- for what then shall remain?
    Abscissas, some mantissas, modules, modes,
    A root or two, a torus and a node:
    The inverse of my verse, a null domain."
     
    Guest, Apr 7, 2010
    #2
  3. gary

    gary Guest

    thanks Pete, it worked.
     
    gary, Apr 7, 2010
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.