Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
orbital
Commits
7dae80bd
Verified
Commit
7dae80bd
authored
Aug 12, 2019
by
Jeremy Soller
Browse files
Support MouseRelativeEvent
parent
69fedc59
Pipeline
#5684
failed with stage
in 39 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Cargo.lock
View file @
7dae80bd
...
...
@@ -40,11 +40,6 @@ dependencies = [
"libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "bitflags"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "bitflags"
version = "1.0.4"
...
...
@@ -65,6 +60,14 @@ name = "cfg-if"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "cloudabi"
version = "0.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "color_quant"
version = "1.0.1"
...
...
@@ -183,11 +186,6 @@ dependencies = [
"rayon 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "lazy_static"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "lazy_static"
version = "1.3.0"
...
...
@@ -279,11 +277,11 @@ dependencies = [
[[package]]
name = "orbclient"
version = "0.3.2
3
"
version = "0.3.2
7
"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"redox_syscall 0.1.5
4
(registry+https://github.com/rust-lang/crates.io-index)",
"sdl2 0.3
1.0
(registry+https://github.com/rust-lang/crates.io-index)",
"redox_syscall 0.1.5
6
(registry+https://github.com/rust-lang/crates.io-index)",
"sdl2 0.3
2.2
(registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
...
...
@@ -291,7 +289,7 @@ name = "orbfont"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"orbclient 0.3.2
3
(registry+https://github.com/rust-lang/crates.io-index)",
"orbclient 0.3.2
7
(registry+https://github.com/rust-lang/crates.io-index)",
"rusttype 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
]
...
...
@@ -301,7 +299,7 @@ version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"image 0.21.1 (registry+https://github.com/rust-lang/crates.io-index)",
"orbclient 0.3.2
3
(registry+https://github.com/rust-lang/crates.io-index)",
"orbclient 0.3.2
7
(registry+https://github.com/rust-lang/crates.io-index)",
"resize 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
...
...
@@ -310,10 +308,10 @@ name = "orbital"
version = "0.1.0"
dependencies = [
"failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
"orbclient 0.3.2
3
(registry+https://github.com/rust-lang/crates.io-index)",
"orbclient 0.3.2
7
(registry+https://github.com/rust-lang/crates.io-index)",
"orbfont 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
"orbital-core 0.1.0",
"redox_syscall 0.1.5
4
(registry+https://github.com/rust-lang/crates.io-index)",
"redox_syscall 0.1.5
6
(registry+https://github.com/rust-lang/crates.io-index)",
"serde 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)",
"toml 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
...
...
@@ -325,10 +323,10 @@ version = "0.1.0"
dependencies = [
"failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)",
"orbclient 0.3.2
3
(registry+https://github.com/rust-lang/crates.io-index)",
"orbclient 0.3.2
7
(registry+https://github.com/rust-lang/crates.io-index)",
"orbimage 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)",
"redox_event 0.1.0 (git+https://github.com/redox-os/event.git)",
"redox_syscall 0.1.5
4
(registry+https://github.com/rust-lang/crates.io-index)",
"redox_syscall 0.1.5
6
(registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
...
...
@@ -365,23 +363,29 @@ dependencies = [
[[package]]
name = "rand"
version = "0.
3.23
"
version = "0.
6.5
"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"autocfg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)",
"rand 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_chacha 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_hc 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_isaac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_jitter 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_pcg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_xorshift 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "rand"
version = "0.
4.6
"
name = "rand
_chacha
"
version = "0.
1.1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)",
"autocfg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
...
...
@@ -397,6 +401,62 @@ name = "rand_core"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "rand_hc"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "rand_isaac"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "rand_jitter"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "rand_os"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
"fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "rand_pcg"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"autocfg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"rand_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "rand_xorshift"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "rayon"
version = "1.0.3"
...
...
@@ -431,12 +491,12 @@ name = "redox_event"
version = "0.1.0"
source = "git+https://github.com/redox-os/event.git#c31e3d3d5f44d60ff9fec2b1ee58b982e72c0d77"
dependencies = [
"redox_syscall 0.1.5
4
(registry+https://github.com/rust-lang/crates.io-index)",
"redox_syscall 0.1.5
6
(registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "redox_syscall"
version = "0.1.5
4
"
version = "0.1.5
6
"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
...
...
@@ -471,23 +531,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "sdl2"
version = "0.3
1.0
"
version = "0.3
2.2
"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"bitflags
0.7.0
(registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static
0.2.11
(registry+https://github.com/rust-lang/crates.io-index)",
"bitflags
1.0.4
(registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static
1.3.0
(registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)",
"num 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
"rand 0.
3.23
(registry+https://github.com/rust-lang/crates.io-index)",
"sdl2-sys 0.3
1.0
(registry+https://github.com/rust-lang/crates.io-index)",
"rand 0.
6.5
(registry+https://github.com/rust-lang/crates.io-index)",
"sdl2-sys 0.3
2.6
(registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "sdl2-sys"
version = "0.3
1.0
"
version = "0.3
2.6
"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
...
...
@@ -614,11 +675,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum autocfg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a6d640bee2da49f60a4068a7fae53acde8982514ab7bae8b8cea9e88cbcfd799"
"checksum backtrace 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "f106c02a3604afcdc0df5d36cc47b44b55917dbaf3d808f71c163a0ddba64637"
"checksum backtrace-sys 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)" = "797c830ac25ccc92a7f8a7b9862bde440715531514594a6154e3d4a54dd769b6"
"checksum bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d"
"checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12"
"checksum byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a019b10a2a7cdeb292db131fc8113e57ea2a908f6e7894b0c3c671893b65dbeb"
"checksum cc 1.0.35 (registry+https://github.com/rust-lang/crates.io-index)" = "5e5f3fee5eeb60324c2781f1e41286bdee933850fff9b3c672587fed5ec58c83"
"checksum cfg-if 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "11d43355396e872eefb45ce6342e4374ed7bc2b3a502d1b28e36d6e23c05d1f4"
"checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
"checksum color_quant 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0dbbb57365263e881e805dc77d94697c9118fd94d8da011240555aa7b23445bd"
"checksum crossbeam-deque 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f739f8c5363aca78cfb059edf753d8f0d36908c348f3d8d1503f03d8b75d9cf3"
"checksum crossbeam-epoch 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "927121f5407de9956180ff5e936fe3cf4324279280001cd56b669d28ee7e9150"
...
...
@@ -632,7 +693,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum image 0.21.1 (registry+https://github.com/rust-lang/crates.io-index)" = "293e54ce142a936a39da748ba8178ae6aa1914b82d846a4278f11590c89bf116"
"checksum inflate 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)" = "1cdb29978cc5797bd8dcc8e5bf7de604891df2a8dc576973d71a281e916db2ff"
"checksum jpeg-decoder 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)" = "c8b7d43206b34b3f94ea9445174bda196e772049b9bddbc620c9d29b2d20110d"
"checksum lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73"
"checksum lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14"
"checksum libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)" = "bedcc7a809076656486ffe045abeeac163da1b558e963a31e29fbfbeba916917"
"checksum linked-hash-map 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "ae91b68aebc4ddb91978b11a1b02ddd8602a05ec19002801c5666000e05e0f83"
...
...
@@ -646,29 +706,35 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum num-rational 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4e96f040177bb3da242b5b1ecf3f54b5d5af3efbbfb18608977a5d2767b22f10"
"checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1"
"checksum num_cpus 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1a23f0ed30a54abaa0c7e83b1d2d87ada7c3c23078d1d87815af3e3b6385fbba"
"checksum orbclient 0.3.2
3
(registry+https://github.com/rust-lang/crates.io-index)" = "
135507db238b8326a429e2c9f79cda29167a63223734f3c52956cc54e16f7d46
"
"checksum orbclient 0.3.2
7
(registry+https://github.com/rust-lang/crates.io-index)" = "
f8b18f57ab94fbd058e30aa57f712ec423c0bb7403f8493a6c58eef0c36d9402
"
"checksum orbfont 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "da4dfbc851e5c24c3cf1e16ec5222f868f3362d2b7493d0b53051fe2669267a2"
"checksum orbimage 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)" = "39fe3f9612b797a312bf122a67ebce408936b34996b9be419dbf0b3d4638c424"
"checksum png 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9adebf7fb91ccf5eac9da1a8e00e83cb8ae882c3e8d8e4ad59da73cb8c82a2c9"
"checksum proc-macro2 0.4.27 (registry+https://github.com/rust-lang/crates.io-index)" = "4d317f9caece796be1980837fd5cb3dfec5613ebdb04ad0956deea83ce168915"
"checksum quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a"
"checksum quote 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)" = "faf4799c5d274f3868a4aae320a0a182cbd2baee377b378f080e16a23e9d80db"
"checksum rand 0.
3.23
(registry+https://github.com/rust-lang/crates.io-index)" = "6
4ac302d8f83c0c1974bf758f6b041c6c8ada916fbb44a609158ca8b064cc76c
"
"checksum rand
0.4.6
(registry+https://github.com/rust-lang/crates.io-index)" = "55
2840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293
"
"checksum rand 0.
6.5
(registry+https://github.com/rust-lang/crates.io-index)" = "6
d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca
"
"checksum rand
_chacha 0.1.1
(registry+https://github.com/rust-lang/crates.io-index)" = "55
6d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef
"
"checksum rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b"
"checksum rand_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d0e7a549d590831370895ab7ba4ea0c1b6b011d106b5ff2da6eee112615e6dc0"
"checksum rand_hc 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4"
"checksum rand_isaac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08"
"checksum rand_jitter 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b"
"checksum rand_os 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071"
"checksum rand_pcg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44"
"checksum rand_xorshift 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c"
"checksum rayon 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "373814f27745b2686b350dd261bfd24576a6fb0e2c5919b3a2b6005f820b0473"
"checksum rayon-core 1.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b055d1e92aba6877574d8fe604a63c8b5df60f60e5982bf7ccbb1338ea527356"
"checksum rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2"
"checksum redox_event 0.1.0 (git+https://github.com/redox-os/event.git)" = "<none>"
"checksum redox_syscall 0.1.5
4
(registry+https://github.com/rust-lang/crates.io-index)" = "
12229c14a0f65c4f1cb046a3b52047cdd9da1f4b30f8a39c5063c8bae515e252
"
"checksum redox_syscall 0.1.5
6
(registry+https://github.com/rust-lang/crates.io-index)" = "
2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84
"
"checksum resize 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "0ed16788c219e719ec11912d96f4e819641941578d1b02f00dab139b00789fb8"
"checksum rustc-demangle 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "ccc78bfd5acd7bf3e89cffcf899e5cb1a52d6fafa8dec2739ad70c9577a57288"
"checksum rusttype 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "30047cc747a78ae042bf2cd65c79f83c3485d90107535b532d6e8f60e2c89cb1"
"checksum scoped_threadpool 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8"
"checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27"
"checksum sdl2 0.3
1.0
(registry+https://github.com/rust-lang/crates.io-index)" = "
a74c2a98a354b20713b90cce70aef9e927e46110d1bc4ef728fd74e0d53eba60
"
"checksum sdl2-sys 0.3
1.0
(registry+https://github.com/rust-lang/crates.io-index)" = "
5c543ce8a6e33a30cb909612eeeb22e693848211a84558d5a00bb11e791b7ab7
"
"checksum sdl2 0.3
2.2
(registry+https://github.com/rust-lang/crates.io-index)" = "
d051a07231e303f5f719da78cb6f7394f6d5b54f733aef5b0b447804a83edd7b
"
"checksum sdl2-sys 0.3
2.6
(registry+https://github.com/rust-lang/crates.io-index)" = "
34e71125077d297d57e4c1acfe8981b5bdfbf5a20e7b589abfdcb33bf1127f86
"
"checksum serde 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)" = "34b623917345a631dc9608d5194cc206b3fe6c3554cd1c75b937e55e285254af"
"checksum serde_codegen_internals 0.14.2 (registry+https://github.com/rust-lang/crates.io-index)" = "bc888bd283bd2420b16ad0d860e35ad8acb21941180a83a189bb2046f9d00400"
"checksum serde_derive 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)" = "978fd866f4d4872084a81ccc35e275158351d3b9fe620074e7d7504b816b74ba"
...
...
Cargo.toml
View file @
7dae80bd
...
...
@@ -9,7 +9,7 @@ version = "0.1.0"
[dependencies]
failure
=
"0.1.1"
orbclient
=
"0.3.2
3
"
orbclient
=
"0.3.2
7
"
orbfont
=
"0.1"
redox_syscall
=
"0.1"
serde
=
"0.9"
...
...
src/scheme.rs
View file @
7dae80bd
use
orbclient
::{
self
,
Color
,
Event
,
EventOption
,
Clipboard
Event
,
Key
Event
,
MouseEvent
,
ButtonEvent
,
FocusEvent
,
QuitEvent
,
MoveEvent
,
ResizeEvent
,
ScreenEvent
,
Renderer
self
,
Color
,
Event
,
EventOption
,
Key
Event
,
Mouse
Event
,
Mouse
Relative
Event
,
ButtonEvent
,
ClipboardEvent
,
FocusEvent
,
QuitEvent
,
MoveEvent
,
ResizeEvent
,
ScreenEvent
,
Renderer
};
use
orbfont
;
use
syscall
;
...
...
@@ -780,6 +780,12 @@ impl<'a> OrbitalSchemeEvent<'a> {
}
}
fn
mouse_relative_event
(
&
mut
self
,
event
:
MouseRelativeEvent
)
{
let
x
=
cmp
::
max
(
0
,
cmp
::
min
(
self
.orb.image
.width
(),
self
.scheme.cursor_x
+
event
.dx
));
let
y
=
cmp
::
max
(
0
,
cmp
::
min
(
self
.orb.image
.height
(),
self
.scheme.cursor_y
+
event
.dy
));
self
.mouse_event
(
MouseEvent
{
x
,
y
});
}
fn
button_event
(
&
mut
self
,
event
:
ButtonEvent
)
{
// Check for focus switch, dragging, and forward mouse events to applications
match
self
.scheme.dragging
{
...
...
@@ -959,6 +965,7 @@ impl<'a> OrbitalSchemeEvent<'a> {
match
event_union
.to_option
()
{
EventOption
::
Key
(
event
)
=>
self
.key_event
(
event
),
EventOption
::
Mouse
(
event
)
=>
self
.mouse_event
(
event
),
EventOption
::
MouseRelative
(
event
)
=>
self
.mouse_relative_event
(
event
),
EventOption
::
Button
(
event
)
=>
self
.button_event
(
event
),
EventOption
::
Scroll
(
_
)
=>
{
if
let
Some
(
entry
)
=
self
.scheme.zbuffer
.first
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment