Commit Graph

134 Commits

Author SHA1 Message Date
db298b0fb8 keymaps: Use multiple key maps, each within the limit of what Xorg can accept.
Key maps are switched on key press whenever needed.
2020-10-12 14:14:17 +00:00
87eb775377 keymap: Keep keymap fd management in one place
At the same time, reduce the distance between this and the Xwayland handling branch.
2020-10-12 10:50:40 +00:00
40850267d4 Fix leak in level_keyboard_new
xkb_keymap_get_as_string requires that the string it returns is freed by
the caller.
2020-10-03 16:07:36 +10:00
ca68fc2040 eek-keyboard: Don't ignore return value
This fixes

../eek/eek-keyboard.c:71:5: warning: ignoring return value of ‘getrandom’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   71 |     getrandom(r, 6, GRND_NONBLOCK);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[17/32] Compiling C object 'src/25a6634@@libsqueekboard@sta/.._eek_eek-renderer.c.o'
2020-09-11 18:16:30 +02:00
22daefba3a levelkeyboard: Rearrange to make future conversion easier 2020-03-07 10:31:39 +00:00
26dbcdeb62 keyboard: Gather up keymap handling, drop layout 2020-01-13 13:53:54 +00:00
0ce19b4269 keyboard: Cleanups of unused code 2020-01-13 13:53:54 +00:00
aafecfac02 EekGtkKeyboard: Use a direct reference to EekboardContext 2020-01-13 13:53:54 +00:00
14d5881f1e key-emitter: Remove unused 2020-01-09 19:57:14 +00:00
b6f3d9c1ea Remove unused header generator 2019-12-16 18:52:50 +00:00
1c4d027af5 cleanup: Remove references to squeek_view 2019-12-07 15:42:54 +00:00
83fea8cd31 Drop squeek_key 2019-12-01 15:01:08 +00:00
b78c3ad131 Try to free keymaps 2019-11-06 14:51:54 +00:00
c99efc430c presses: Move press handling to Rust
This fixes some rendering things which would happen with multiple state-sharing buttons. It also removes some interfaces exposing rows, views, layouts, and buttons, bringing the code closer to removing them from the FFI entirely.
2019-10-23 15:11:16 +00:00
29231f7e31 cleanup: Unused types 2019-10-20 09:47:10 +00:00
31fdde4da9 keycodes: Moved submission to Rust 2019-10-09 09:23:06 +00:00
aa9523338f Merge branch 'buttonlists' into reparse 2019-09-09 15:11:59 +00:00
0ed66e0eab locked: Use keys instead of buttons 2019-09-09 13:54:55 +00:00
6523275b6a views: Change based on layout file 2019-09-09 13:25:03 +00:00
b84c402c4a WIP
WIP

WIP: keymap generation test passes

meta: Update features and version

WiP: cargo.lock

WIP: don't crash

WIP: no outlines

parsing: New tests

WIP: base level works

WIP: remove old keyboard

symbols correctly input

WIP: lodaing files

WIP: fallback works

Valid fallback
2019-09-04 09:44:31 +00:00
6c0a642abf Store key instead of button in pressed lists 2019-08-31 11:30:51 +00:00
83907af456 Fix code formatting 2019-08-29 14:52:10 +00:00
79b66f81ec view: Move button finding to Rust 2019-08-18 13:22:18 +00:00
4e9a8e4afe Move button finding to view 2019-08-18 13:22:18 +00:00
c9a580dc07 Drop keyboard 2019-08-18 13:22:18 +00:00
f479a36dbe keyboard: Remove references 2019-08-18 13:22:18 +00:00
c4b3a0aaaa row: Moved button sizing closer to row 2019-08-18 13:22:18 +00:00
7a06ac1ee7 keyboard: Remove scale 2019-08-18 13:22:18 +00:00
524040cf00 Remove eek-container 2019-08-18 13:22:18 +00:00
77d4f45d13 section: Elininate references 2019-08-18 13:22:18 +00:00
4f8de42598 section: Move properties into Row 2019-08-18 13:22:18 +00:00
6fc351d2e8 eekkey: Dropped in favor of Button
Each Button has a KeyState, which may be shared with other buttons. The list of pressed and locked buttons is used as a list of keys, causing a search for the button in the current view.
2019-08-18 13:22:18 +00:00
fc683de434 keyboard: Pass the current view instead of level 2019-08-18 13:20:43 +00:00
996f681e5c keystate: Removed multiple symbols 2019-08-18 13:20:43 +00:00
725b36ba79 locking: Move to squeek_key 2019-08-18 13:20:43 +00:00
1471a61993 locking: Set lock directly on the button 2019-08-18 13:20:43 +00:00
94a76eedfd Remove marshalers 2019-08-18 13:20:43 +00:00
6081dc240a modifiers: Remove empty argument 2019-08-13 12:36:14 +00:00
73d2505c89 Do not pass the symbol to the key emitter 2019-08-13 12:24:11 +00:00
a072755cee layout: Use show_symbols instead of shift 2019-08-08 20:04:44 +00:00
1cfec4de50 key: Share state between multiple keys 2019-08-08 20:04:38 +00:00
cc3f2315a7 Use keyboards as views
Got rid of modifiers in the process. Still buggy: dragging over keys.
2019-08-08 19:56:36 +00:00
25a2e95890 keyboard: Remove unused numlock and altgr masks 2019-08-08 19:26:24 +00:00
f371b14e89 levelkeyboard: Use a layer for managing keyboard views 2019-08-08 19:26:21 +00:00
fb93e25833 eekkey: Moved state to KeyState 2019-08-08 19:18:29 +00:00
ad86cb531a symbol: Store symbols instead of pointers 2019-08-08 19:18:29 +00:00
53b89aae45 symbol: Remove remains 2019-08-08 19:18:29 +00:00
b76e43679e level: Remove level from elements 2019-08-08 19:18:29 +00:00
077ca8fad2 level: Make keyboard the only source of level data 2019-08-08 19:18:29 +00:00
23d5f18d4a symbols matrix: Remove in favor of a levels vector 2019-08-08 19:18:28 +00:00