Rob Saunders
06e01e4cb3
Added event for cancelling a drag and drop.
2017-07-27 10:56:34 +08:00
Rob Saunders
5f00028f6b
Mac module emits the winit events DroppedFile and HoveredFile.
2017-07-27 10:51:00 +08:00
Benjamin Saunders
3d9e8da9ec
Transparent axis/button IDs
2017-07-01 02:22:02 -07:00
mitchmindtree
f6587aed39
[WIP] Have EventsLoopProxy::wakeup return a Result. Begin linux impl.
...
X11 and Wayland implementations are now half implemented, however both
still do not correctly break from the inner blocking event dispatch
functions when `wakeup` is called, which they should do.
2017-05-25 23:19:13 +10:00
tomaka
15aafc2908
Merge pull request #164 from Ralith/rich-input
...
Richer input events
2017-05-07 08:35:03 +02:00
torkleyy
c4cdb9aa5c
Set repr of VirtualKeyCode to u32
...
This allows to have an array of bools for the key states.
2017-04-26 07:53:20 +02:00
Benjamin Saunders
22bc119cd7
Richer input events
...
This expands input events to represent sub-pixel mouse positions, devices responsible for generating events, and raw
device-oriented events. The X11 back end is refactored to make full use of the new expressiveness. Other backends have
had new functionality minimally stubbed out, save for the macos backend which already supports sub-pixel mouse
positions.
2017-04-23 01:08:15 -07:00
Erik Rigtorp
f3ccdb7aec
Add keyboard modifiers to input event
...
Making applications track modifier keys results in unnecessary work for
consumers, it's error prone, and it turns out to have unavoidable bugs.
For example, alt-tabbing with x11 results in the alt modifier state
getting stuck.
To resolve these problems, this patch adds a Mods value to the keyboard
input event.
Based on this patch: d287fa96e3
2017-02-27 13:36:11 -06:00
Pierre Krieger
b988c174fe
Add WindowId type
2017-02-03 09:13:11 +01:00
Pierre Krieger
e7d43174e7
Implement the transition API
2017-01-28 15:05:36 +01:00
Pierre Krieger
422b332c1b
Add a transition macro system
2017-01-28 15:00:17 +01:00
Andy Barron
db45e58390
Add MouseEntered/MouseLeft for Windows, X11, Wayland, & Cocoa
2016-11-03 01:31:16 -07:00
Emilio Cobos Álvarez
952ca7cfed
x11: handle X11's multi-key, a.k.a compose key.
2016-07-04 16:40:47 -07:00
Richard Lettich
117069ef90
Changed MouseMoved((i32, i32)) to MouseMoved(i32, i32), breaking change
2016-03-27 14:39:20 -04:00
Manish Goregaokar
1de66e4efb
Add support for navigation keys
2016-03-17 16:04:03 +05:30
Patrick Walton
7886ff9acd
Add phases to wheel events.
...
Needed for apps to support overscroll on the Mac.
2016-03-03 16:49:35 -07:00
Paul Rouget
68818751f4
TouchpadPressure event
2016-02-26 11:08:46 +01:00
Ty Overby
5af2d6e84c
Update events.rs
2015-07-15 09:37:15 -07:00
tomaka
d3fd00968e
Merge pull request #513 from meh/key-consistency
...
Fix some inconsistencies in VirtualKeyCode variant names
2015-07-09 11:06:44 +02:00
tomaka
bb96e8a58a
Merge pull request #511 from thelink2012/drop-win32
...
[0.3] DroppedFile event for Win32
2015-07-09 11:06:38 +02:00
meh
cd6577065f
Fix some inconsistencies in VirtualKeyCode variant names
2015-07-02 09:52:44 +02:00
tomaka
836e53e55a
Merge pull request #477 from rozaliev/feature/ios
...
[WIP] ios support
2015-06-29 09:29:46 +02:00
Denilson M. Amorim
826931e2c2
DroppedFile event for Win32
2015-06-23 19:05:37 -03:00
Robert Knight
b2c2f300dc
Correct MouseWheel doc comment.
...
Remove incomplete sentence and obsolete comment
about the meaning of the parameter.
2015-06-15 23:57:07 +01:00
Robert Knight
5e626b7fdf
Correct typo in MouseScrollDelta docs
2015-06-13 23:22:51 +01:00
Robert Knight
f0bab95c4d
Express scroll deltas as either line or pixel deltas
...
Depending on the platform and device, scroll deltas may either
be represented as pixel deltas specifying the amount
in pixels to scroll or they may be expressed in 'lines' or 'chunks'
for low resolution devices (eg. a traditional mouse wheel).
Pixel deltas are currently available on OS X. X11 currently
supports only integer line deltas, though pixel deltas
are available via XInput2. Windows supports fractional
line deltas.
2015-06-13 23:19:31 +01:00
Evgeny Rozaliev
84703027d6
[add] ios support
2015-06-05 16:38:35 +03:00
Pierre Krieger
d9f0d92584
Rework MouseWheel event and fix the values on win32
2015-04-29 14:35:09 +02:00
Glenn Watson
0670b1ec2e
Add Expose event handler which is needed on some window managers.
2015-04-24 07:32:36 +10:00
Eduard Bopp
b2367fe2e6
Rename enum variants of MouseButton
...
With enums that are namespaced by default, it seems reasonable to be less
redundant in the variant naming here.
2015-02-05 16:52:53 +01:00
Andrew Kelley
02a57e0422
fix for latest rustc
2015-01-23 19:18:22 -07:00
Andrey Lesnikov
5a4fee967a
x11, android, win32: [ui]size, [u]int -> [ui]32
2015-01-13 16:23:30 +03:00
Bryan Bell
995bd37c78
Change uint/int to usize/isize
...
From https://github.com/rust-lang/rfcs/pull/544 the types uint/int were
renamed to usize/isize.
2015-01-12 19:33:31 -08:00
Pierre Krieger
4c5e430dd3
Update for Rustc
2015-01-03 23:15:39 +01:00
Glenn Watson
435c64f473
Fix event name
2014-12-18 10:57:12 +10:00
Glenn Watson
9dc5689eef
Introduce a WindowProxy for accessing a subset of functionality
...
from other threads. This currently provides a way for other threads
to wakeup a blocked event loop on X11. Other platforms have stub
functions that need to be implemented. This is similar to
the functionality of glfwPostEmptyEvent.
2014-12-17 14:50:05 +10:00
Pierre Krieger
a79bc34807
Update for Rustc
2014-12-13 20:07:35 +01:00
Tomaka17
2be71306ec
Remove key modifiers in KeyboardInput
2014-11-06 19:09:07 +01:00
Tomaka17
04f4135110
Reorder and add comments to some of the virtual keys
2014-11-06 13:26:42 +01:00
David Partouche
f86af01a99
Added the Alt key modifier
2014-10-23 18:01:09 +02:00
David Partouche
86e8480550
Added the KeyPress and KeyRelease events
2014-10-23 17:30:16 +02:00
David Partouche
a2df6a8699
Changed statics to uppercase
2014-10-11 12:38:34 +02:00
David Partouche
10f625c2c8
Fixed static uppercase warning
2014-10-11 12:04:48 +02:00
Tomaka17
c316c86e7c
Update for rustc f9fc49c06 2014-10-10 00:07:08 +0000
2014-10-10 17:52:47 +02:00
Tomaka17
ae65b423dd
Implement new events system
2014-08-13 17:23:03 +02:00
Tomaka17
d08c94daac
Remove Iconified and NeedRefresh events
2014-08-02 12:43:48 +02:00
Tomaka17
aa7d88dbda
Fix bad events
2014-07-30 13:11:49 +02:00
Tomaka17
1f0999e6a0
Implement get_position for win32 and fix interface
2014-07-27 22:46:30 +02:00
Tomaka17
6133e17b9a
Add moved events for win32
2014-07-27 20:08:31 +02:00
Tomaka17
0103fb833e
Remove FramebufferSizeChanged event
2014-07-27 19:45:02 +02:00