Commit Graph
130 Commits
Author SHA1 Message Date
Michael FairleyandCobrand 761a260e59 Add link directives for iOS frameworks 2017-07-23 14:53:59 -07:00
Cobrand 8264c3f283 Add missing enum variants in SDL_WindowFlags 2017-07-09 05:50:44 +00:00
Cobrand 7623bd51fb Add SDL_GetWindowWMInfo in sdl2_sys
Because of the lack of untagged union support as of this commit's date,
this is not implemented in sdl2 yet.

Fixes #649
2017-07-09 05:37:47 +00:00
Florian HageneierandCobrand 7d0d58be61 Exposed SDL_CaptureMouse 2017-07-04 22:32:46 -07:00
Cobrand cee83a4547 Bump sdl2_sys to 0.30.0 2017-05-14 07:46:07 +02:00
CobrandandGitHub c02f99954e Update sdl2-sys tags and categories 2017-05-06 04:22:30 +02:00
Cobrand 6604dc2fff Bump sdl2-sys to 0.30-beta 2017-05-05 09:33:02 +02:00
Cobrand eaadf7609c Fix clippy errors: second pass 2017-05-03 09:15:54 +02:00
Cobrand 922bc7f5ae sdl2-sys: Add missing SDL_Log_* functions 2017-04-12 08:26:54 +02:00
Cobrand 8bcf9f69b1 Bump sdl2_sys to 0.27.3 2017-04-05 07:37:42 +02:00
Tad HardestyandCobrand c81c10e5de Remove redundant #[link] attributes (fixes #615)
The buildscript is sufficient for specifying the link flags in all
cases. In newer versions of Rust, the redundant linker flags generate a
warning.
2017-03-22 22:11:28 +01:00
Michael FairleyandCobrand faf275be94 Only attempt to link against a framework if building for mac 2017-02-19 21:49:24 +01:00
Cobrand 03e7d83880 bump to minor 0.27.2 2016-12-23 14:54:48 +01:00
ThinkofnameandCobrand 5a32976326 Add missing #[repr(C)] to SDL_Keysym
This also reverts the change in 9604e85f3d
which just hid the issue.
2016-12-23 13:49:23 +01:00
Cobrand 90397827b6 Bump to v0.27 2016-12-10 00:20:33 +01:00
Cobrand db3cf67f95 bumped version to 0.26 2016-11-28 09:56:33 +01:00
Luke Jones c696bc5a85 Hopeful finished implementation of EventPump mouse_state()
- implemented tests using keyboard_state() as a template
- renamed some functions and structs in the process to better reflect
their use
- `EventPump` should now return a `MouseState` via `fn
mouse_state(&self) -> MouseState`. New functions added.
    - `fn is_mousebutton_pressed(&self, mousebutton: Mousebutton) ->
    bool`
    - `fn mousebuttons(&self) -> MousebuttonIterator`
    - `fn pressed_mousebuttons(&self) -> PressedMousebuttonIterator`
- Implemented `ToPrimitive` and `FromPrimitive` for struct `Mousebutton`
2016-11-18 21:48:54 +13:00
Luke Jones 0c8692c978 Initial rework of mouse 2016-11-18 19:44:04 +13:00
Jake Kiesel da2fd90f4f Add direction field to MouseWheel event 2016-11-05 10:37:52 -06:00
Tony Aldridge 0ec02efead Bumped version number 2016-11-05 12:07:41 +00:00
Tony AldridgeandGitHub 37f321a406 Merge pull request #546 from icefoxen/master
Added more event types to Event::to_ll()
2016-11-05 11:55:51 +00:00
Tony AldridgeandGitHub 9809c5484b Merge pull request #537 from Cobrand/master
Added show_message_box
2016-11-05 11:54:56 +00:00
Simon Heath 10fa8e293e Fixed typos in keycodes and scancodes 2016-10-31 10:04:30 -04:00
Cobrand 087caf7539 Added show_message_box
* Added show_message_box in the submod messagebox
* Added several structs and enum next to it
* Added an example in examples/ to :
	* allow users to test it quickly
	* have something to test this feature quickly

Also changed some minor stuff in show_simple_message_box,
but it shouldn't break the current API
2016-10-19 17:04:01 +02:00
Simon Heath 9249beac08 Starting to implement Event::to_ll for all event types.
So far only Quit, Window, KeyDown and KeyUp are implemented.

I now sympathize with leaving them unimplemented 'cause it's a huge
pain in the butt.
2016-10-08 16:30:46 -04:00