Kovid Goyal
2458c3a7c6
Implement drag and drop of text/plain for Wayland as well
2020-03-19 13:28:21 +05:30
Luflosi
b2d428618c
Add circumflex (^) key
2019-12-22 18:41:07 +01:00
Kovid Goyal
e142083d53
Remove unused code
...
Strip out the GLFW timer code, since we use our own kitty based
monotonic clock.
2019-12-19 16:27:25 +05:30
Benoit de Chezelles
7f2b98fad7
Rename all uses of 'scancode' to 'native_key' where relevant
2019-10-16 02:25:20 +02:00
Benoit de Chezelles
2b6dde2ac5
Wish: rename scancode → native_key in glfw codebase
2019-10-16 02:00:24 +02:00
Benoit de Chezelles
0c254fa7c7
GLFWkeyevent: rename scancode → native_key
2019-10-16 02:00:24 +02:00
Luflosi
f3b9ff5f9f
Use datatype monotonic_t instead of double to keep track of time
...
The time is stored in a signed 64 bit integer with nanosecond accuracy. This eliminates the possibility of floating-point inaccuracies.
`monotonic_t` can currently hold values large enough to work correctly for more than 200 years into the future.
Using a typedef instead of directly using `int64_t` everywhere will also allow easily changing the datatype in the future should the need arise for more precise or bigger time values.
2019-09-25 17:43:11 +02:00
Kovid Goyal
4ec1a8d9c3
Merge branch 'extract-glfw-key-event-data' of https://github.com/bew/kitty
2019-09-25 15:44:56 +05:30
Benoit de Chezelles
53275c9137
Extract key event data to struct
2019-09-24 19:15:35 +02:00
Luflosi
e619eb9cbb
Add more keyboard keys
2019-09-08 12:32:19 +02:00
Luflosi
a65ee155c5
Indent lookup table in _glfwGetKeyName() to allow for longer keyboard key names
2019-09-08 12:32:19 +02:00
Luflosi
97e6978ed8
Order keyboard keys by their ASCII value
2019-09-08 12:32:19 +02:00
Luflosi
b3b830bb5f
Make adding more printable keys slightly easier
...
When adding keys after `GLFW_KEY_UNDERSCORE`, one now needs to change a `#define` right below the last printable key instead of changing it elsewhere in the code.
This commit now also marks `GLFW_KEY_PLUS` and `GLFW_KEY_UNDERSCORE` as printable characters.
2019-09-01 11:24:14 +02:00
Luflosi
6cc720a350
Fix typos
...
Inspired by 4d3ee554b3
.
Found using `codespell`.
2019-08-26 12:31:15 +02:00
Luflosi
28bb123be8
Update the GLFW version number from 3.3 to 3.4
...
Closes https://github.com/kovidgoyal/kitty/issues/1884 .
From a337c56848
.
2019-08-02 11:00:16 -05:00
Luflosi
b8d2b76ee4
Reduce the difference of glfw to upstream
2019-07-28 00:10:50 -05:00
Luflosi
922bc62e0e
GLFW: Fix invalid ranges for gamepad axis sources
...
From 9420e6f0d0
.
2019-07-26 13:30:38 -05:00
Luflosi
489f3e6c9d
Add C dialect reminders to each glfw source file
...
Reduces the difference to upstream.
From 56aad76b16
.
2019-07-20 21:07:27 -05:00
Luflosi
bdc4558a43
Update GLFW copyright years
...
Reduces the difference to upstream.
From ab118b2529
.
2019-07-20 00:30:13 -05:00
Kovid Goyal
841c907efc
Build glfw with all warnings enabled
2019-07-01 10:42:07 +05:30
Luflosi
fb98aa650d
Reduce the difference of glfw to upstream
...
This only changes some formatting, whitespace, etc.. There are no
changes to the functionality.
Let me know if you don't like some of those changes.
2019-06-20 21:40:59 +02:00
Kovid Goyal
47acc9ff2f
Get rid of GLFW_(TRUE|FALSE)
2019-06-08 08:14:30 +05:30
Kovid Goyal
fe62700825
Get rid of GLFWbool
2019-06-08 08:12:42 +05:30
Kovid Goyal
a51239c6ae
Add support for the underscore key found in some keyboard layouts
...
Fixes #1639
2019-05-24 17:59:50 +05:30
BlahGeek
e36e44ab3a
macOS: do not pass input events while having marked text
...
fix chinese input method backspacing issue
macOS: Set pre-edit text for IME
macOS: implement glfwPlatformUpdateIMEState
set firstRectForCharacterRange correctly
macOS: update IME position on each input
macOS: use float instead of int for updateIMEState
minor fix
macOS: ignore marked text on deadkey
fixes german keyboard input
macOS: convert markedRect to screen coord
2019-05-03 13:27:06 +05:30
Kovid Goyal
5ab8a665be
GLFW: Add more standard cursor shapes
...
Also use an enum for the cursor shapes
2019-03-21 13:06:13 +05:30
Kovid Goyal
db16996181
Fix Coverity Scan false positive
...
From upstream: c20754c4a6
2019-03-06 08:40:02 +05:30
Kovid Goyal
cb7eb48768
Cleanup
...
From upstream: d5ab3e919a
2019-02-03 20:04:54 +05:30
Kovid Goyal
419b078104
Remove duplicate centerCursor function
...
From upstream: a46104ee69
2019-02-03 19:56:16 +05:30
Kovid Goyal
69e76d6eeb
Frogot to ad dplus key to _glfwGetKeyName
2018-12-17 21:16:57 +05:30
Tarmack
d519553581
Implement primary selection for Wayland
2018-10-31 09:03:22 +05:30
Kovid Goyal
009ef54de7
Implement high precision scrolling with the trackpad on platforms such as macOS and Wayland that implement it.
...
Fixes #819 . Note that I have no idea whether the code works well on
retina screens, might have to multiple the pixel count by the scale
factor on those screens?
2018-08-24 11:00:58 +05:30
Kovid Goyal
29dd766a67
Fix unused vars warning
2018-07-12 18:18:20 +05:30
Kovid Goyal
342164ede1
Add API for the application to notify the IME system of state changes
2018-07-12 18:18:19 +05:30
Kovid Goyal
4313531432
macOS: Use a custom mouse cursor that shows up well on both light and dark backgrounds
...
Fixes #359 . Also, update GLFW from upstream for retina cursor setting
support.
2018-07-07 10:43:30 +05:30
Kovid Goyal
709d19119d
Update bundled glfw
2018-05-20 08:03:58 +05:30
Kovid Goyal
238508fc0a
Update glfw from upstream
...
Proper cross-platform fix for issue of mouse cursor not being restored
over un-focused windows.
2018-04-26 08:31:52 +05:30
Kovid Goyal
5755ba72b1
Fix #449
2018-04-09 20:13:13 +05:30
Kovid Goyal
caf9a12b34
Update glfw from upstream
...
libxkbcommon based keyboard handling now works (at least the basic
stuff, haven't tested compose/mapnotify etc.)
2018-03-31 12:21:36 +05:30
Kovid Goyal
1edf1524f8
Update bundled glfw
2018-03-03 11:21:09 +05:30
Kovid Goyal
2777b89e45
Update bundled glfw
2018-02-01 13:03:26 +05:30
Kovid Goyal
6ad21fc98f
Update bundled glfw
2018-01-29 12:30:05 +05:30
Kovid Goyal
2f4f3e3331
Update bundled glfw
2017-12-20 09:07:06 +05:30
Kovid Goyal
fb41ecb2e5
Update bundled glfw
2017-12-01 12:16:16 +05:30
Kovid Goyal
9307486254
Initial import of glfw
2017-12-01 12:15:36 +05:30