Giter Club home page Giter Club logo

Comments (4)

haata avatar haata commented on May 31, 2024

Hmm, I'll take a look at the Lock issues.

I designed the shift/latch/lock the same way OSs do it.

Lock + Shift = Original
Lock + Latch = Original
Lock + Latch + Shift = Shifted

As long as you just use Lock the behaviour should be as intended. I may add
a layer state debug mode that shows the state of each layer whenever there
is a change to any one of them (to help debug this).

On Sat, Jun 13, 2015 at 7:22 PM Steven Lu [email protected] wrote:

The KLL spec wasn't very clear on this.

I am envisioning this: Left corner and right corner bottom row (Function 2
and Function 4 from defaultMap) are both to be Shift keys for Layer 1.

Special tweak: I want to make them lock on a layer when both are pressed.
That seems easy enough.

But now I want a different (easier) way to un-lock them.

First off, there seems to be no "unlock layer x" capability defined. It's
toggle or bust, it seems. This is slightly non-ideal because in the absence
of bright-ass LED's, I am liable to want to spam keys to make sure I hit
them. Like Esc gets spammed a lot. If you are a Vim user, you know what I'm
talking about.

Anyway, I was thinking, I'd like to be hitting either of those corner keys
once to take me out of the lock.

Along another line of questioning I have found so far that Latch() works
like Lock but doesnt toggle. It doesnt latch back off after a key. So it
seems like Latch() is currently (I still need to test this more)
functioning as a spammable Lock ON capability. So we're still definitely
missing a Lock OFF capability.


Reply to this email directly or view it on GitHub
#51.

from controller.

unphased avatar unphased commented on May 31, 2024

Hmm I think I didn't think my example through when I wrote it. If i set Layer 1's Function 2 to Layer 1 Lock (while Function 2 in Layer 0 remains Layer 1 Shift), then I can still do my key-spamming and it would properly leave it off. I'll open a new issue when I can get more information on lock/latch issues. I would have imagined that the serial debug would reveal the lock states (i see one to fetch the layer states) but I take it that you don't have a debug command that enables state switch streaming.

from controller.

unphased avatar unphased commented on May 31, 2024

Okay so I can confirm, with a mapping like this:

image

I can abuse the layer state to achieve my ON/OFF button functionality. With this I can mash the key on the right side of RShift to lock the layer ON, and I can mash the bottom right corner key to turn it OFF.

There is one quirk with this, if I use the key for the OFF Lock switch, while that is being depressed during that state, the lock is off. This is sort of expected but it would be nice if theres some way to hack it to turn the lock off while keeping the lock on for the duration of the press (like this key normally does). Anyway it's mostly good enough and I'm already having great fun getting arrow keys with a 60% board with this mapping, next up are Page up/Page down, home/end, F-keys...

from controller.

unphased avatar unphased commented on May 31, 2024

Ah, nice. I did this: S0x3E : layerLock(1) + layerShift(1); and it works just like I thought it would! brilliant.

from controller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.