382 Commits

Author SHA1 Message Date
Mitchell Hashimoto
c774e37548 core: input bindings support unmapped bindings 2023-03-25 15:36:37 -07:00
Mitchell Hashimoto
f5c1dfa374 reload_config keybinding (defaults to ctrl+alt+super+space) 2023-03-19 09:50:53 -07:00
Mitchell Hashimoto
04c38ef3b0 macos: change focus callback to use an enum so we can get other dirs 2023-03-11 17:44:00 -08:00
Mitchell Hashimoto
b582691185 macos: hook up all the bindings so we're ready to handle focus event 2023-03-11 16:22:04 -08:00
Mitchell Hashimoto
6c857877e8 apprt/embedded: close surface callback 2023-03-08 15:05:15 -08:00
Mitchell Hashimoto
fa9ee0815f apprt/embedded: newSplit callback 2023-03-08 14:56:50 -08:00
Mitchell Hashimoto
8ce6f349f8 input: new_split binding, can parse enums 2023-03-08 08:57:38 -08:00
Mitchell Hashimoto
89d07fcd83 clear_history binding, default Cmd+K 2023-03-03 09:27:47 -08:00
Mitchell Hashimoto
6c6a3d6a5d "goto_tab" key binding to jump to a specific tab, defaults to Super+N
The apprt surface must implement `gotoTab` to make this work. This is
only implemented in GTK for now.
2023-02-25 10:48:38 -08:00
Mitchell Hashimoto
aa2d3720b6 gtk: previous/next tab bindings 2023-02-25 10:29:58 -08:00
Mitchell Hashimoto
adae05cf04 gtk: mouse input 2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
1659f52175 macos: mouse button and mouse move events 2023-02-19 10:44:57 -08:00
Mitchell Hashimoto
4b44b2bc95 c: fix enums for input 2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
573b163636 start input, its broken but we're getting there 2023-02-19 10:44:56 -08:00
Mitchell Hashimoto
946383eb77 apprt: key/charCallback, input supports all glfw keys 2022-12-30 14:45:03 -08:00
Mitchell Hashimoto
6f3bc5186d update to latest zig 2022-12-21 18:30:21 -08:00
Mitchell Hashimoto
b8832833cb respect application cursor keys for arrow (DECCKM)
This fixes the arrow keys in htop.
2022-11-27 20:57:58 -08:00
Mitchell Hashimoto
8ac90d33e6 new_tab action 2022-11-16 21:17:41 -08:00
Mitchell Hashimoto
dad4923901 hook up all the keyboard actions 2022-11-15 20:10:50 -08:00
Mitchell Hashimoto
c9b01fdc6c support app quitting to close all windows 2022-11-06 14:10:28 -08:00
Mitchell Hashimoto
be76bc6c1a close window action 2022-11-06 10:44:23 -08:00
Mitchell Hashimoto
ecbd119654 Hook up new window, modify renderers 2022-11-06 10:34:43 -08:00
Mitchell Hashimoto
f09ba38c6f remove stage1 hack 2022-11-01 13:25:20 -07:00
Mitchell Hashimoto
bcf485342e fix a couple more memory leaks 2022-10-24 16:17:18 -07:00
Mitchell Hashimoto
c103a278f1 render font info in dev mode 2022-10-17 14:47:51 -07:00
Mitchell Hashimoto
f29393bca6 Imgui (#20)
* vendor/cimgui

* Add a "dev mode" window which for now is just imgui demo
2022-10-16 16:20:08 -07:00
Mitchell Hashimoto
9aa5378ffa Track/cache button state and mods state 2022-08-26 13:55:24 -07:00
Mitchell Hashimoto
469515c02b bind function keys (F1 to F12) 2022-08-26 10:27:41 -07:00
Mitchell Hashimoto
3b5a9caff5 hook up more control keys: home, end, page up, page down 2022-08-24 11:16:36 -07:00
Mitchell Hashimoto
80376ce6da hook up keybindings for copy/paste and arrow keys 2022-08-24 11:08:39 -07:00
Mitchell Hashimoto
2800a46854 keybind parsing in CLI args 2022-08-24 09:31:14 -07:00
Mitchell Hashimoto
222f70857a move input stuff to src/input 2022-08-23 19:52:14 -07:00