diff options
author | June McEnroe <june@causal.agency> | 2018-08-23 15:33:56 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-23 15:33:56 -0400 |
commit | 97216e7486e887e640f3c3a1b713278d7e97e15c (patch) | |
tree | 8263d5eb85152c1ae9f37398344fa3bc27e06e03 /client.c | |
parent | Implement I, directional insert (diff) | |
download | torus-97216e7486e887e640f3c3a1b713278d7e97e15c.tar.gz torus-97216e7486e887e640f3c3a1b713278d7e97e15c.zip |
Add g for flip
Diffstat (limited to '')
-rw-r--r-- | client.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client.c b/client.c index 28ccc4e..e0286eb 100644 --- a/client.c +++ b/client.c @@ -179,6 +179,11 @@ static void clientMove(int8_t dx, int8_t dy) { clientMessage(msg); } +static void clientFlip(void) { + struct ClientMessage msg = { .type = CLIENT_FLIP }; + clientMessage(msg); +} + static void clientPut(uint8_t color, uint8_t cell) { struct ClientMessage msg = { .type = CLIENT_PUT, @@ -277,6 +282,7 @@ static void inputNormal(wchar_t ch) { break; case ESC: input.mode = MODE_NORMAL; input.shift = 0; break; case 'q': endwin(); exit(EX_OK); + break; case 'g': clientFlip(); break; case 'h': clientMove(-1, 0); break; case 'l': clientMove( 1, 0); break; case 'k': clientMove( 0, -1); |