Reply To: html layout/event times/selector vs. scale/ compatibility

PennController for IBEX Forums Support html layout/event times/selector vs. scale/ compatibility Reply To: html layout/event times/selector vs. scale/ compatibility

#7416
Jeremy
Keymaster

Hi,

I was thinking something more like this:

newTrial("welcome", 
    newHtml("welcome", "welcome.html")
        .css("line-height","1.4")
    ,
    newCanvas("clicks", "100vw", "100vh")
        .print("center at 50vw","middle at 50vh")
    ,
    newSelector("clicks_1")
      .add(getCanvas("clicks"))
      .wait()    
)

The Key element only reacts to keys pressed on the keyboard. All its commands are listed here: https://doc.pcibex.net/key/, as you can see there is no command that relates to the mouse (as expected, for a keyboard-specific element)

Note that the Selector element has no visual content, it merely makes other elements (which themselves have visual content, like a Canvas element) selectable, so calling .print or .refresh on them won’t have any effect

Jeremy