diff --git a/gui/shaviankb/shaviankb.tal b/gui/shaviankb/shaviankb.tal index 49f407c..b1d62ec 100644 --- a/gui/shaviankb/shaviankb.tal +++ b/gui/shaviankb/shaviankb.tal @@ -49,10 +49,41 @@ BRK @on-control ( -> ) - .Controller/button DEI #02 SFT #01 AND .layer STZ - - BRK - + .Controller/button DEI DUP ?&on-button + POP + .Controller/key DEI tolowercase + ( | top row ) + DUP [ LIT "q ] NEQ ?{ #0000 } + DUP [ LIT "w ] NEQ ?{ #0001 } + DUP [ LIT "e ] NEQ ?{ #0002 } + DUP [ LIT "r ] NEQ ?{ #0003 } + DUP [ LIT "t ] NEQ ?{ #0004 } + DUP [ LIT "y ] NEQ ?{ #0005 } + DUP [ LIT "u ] NEQ ?{ #0006 } + DUP [ LIT "i ] NEQ ?{ #0007 } + DUP [ LIT "o ] NEQ ?{ #0008 } + ( | middle row ) + DUP [ LIT "a ] NEQ ?{ #0009 } + DUP [ LIT "s ] NEQ ?{ #000a } + DUP [ LIT "d ] NEQ ?{ #000b } + DUP [ LIT "f ] NEQ ?{ #000c } + DUP [ LIT "g ] NEQ ?{ #000d } + DUP [ LIT "h ] NEQ ?{ #000e } + DUP [ LIT "j ] NEQ ?{ #000f } + DUP [ LIT "k ] NEQ ?{ #0010 } + DUP [ LIT "l ] NEQ ?{ #0011 } + ( | bottom row ) + DUP [ LIT "z ] NEQ ?{ #0012 } + DUP [ LIT "x ] NEQ ?{ #0013 } + DUP [ LIT "c ] NEQ ?{ #0014 } + DUP [ LIT "v ] NEQ ?{ #0015 } + DUP [ LIT "b ] NEQ ?{ #0016 } + DUP [ LIT "n ] NEQ ?{ #0017 } + POP BRK + &on-button ( button -> ) + #02 SFT #01 AND .layer STZ + BRK + ( @|core ) @@ -230,6 +261,9 @@ ( @|stdlib ) +@tolowercase ( char -- ) + JMP2r + @ ( short* -- ) SWP /b &b ( -- )