Fenrir
|
d4ad0ea8b0
|
Move swkbd_message_callback sanity checks to the top of the fn
It's kinda pointless to have those checks *after* attempting to deref
the data rather than before.
|
10 months ago |
Fenrir
|
1ef2164822
|
Minor refactor for additonal clarity
|
10 months ago |
Fenrir
|
becdc05abd
|
Rename variables for clarity
|
10 months ago |
Fenrir
|
2f7a04b08d
|
Add comment clarifying callback pointer safety
|
10 months ago |
Fenrir
|
3d59bdd2b7
|
Return Cow<str> from filter callback
|
10 months ago |
Fenrir
|
032acb1524
|
Call the filter_callback directly in swkbd_message_callback
|
10 months ago |
Fenrir
|
dea122ad16
|
Improve filter callback API
|
10 months ago |
FenrirWolf
|
10163fd225
|
Merge pull request #165 from FenrirWolf/unsafe_blocks_in_unsafe_fn
Require unsafe blocks in unsafe fns
|
10 months ago |
Fenrir
|
a18dfc49f7
|
Require unsafe blocks in unsafe fns
|
10 months ago |
FenrirWolf
|
0345f49b8b
|
Merge pull request #157 from FenrirWolf/software-keyboard-shenanigans
Get software keyboard input without max byte size parameter
|
10 months ago |
Fenrir
|
636c8d7028
|
Update MSRV to 1.73
|
10 months ago |
Fenrir
|
6d6f9c0c18
|
Update CI nightly version
|
10 months ago |
Fenrir
|
9c33e491f2
|
Use next_multiple_of instead of bitshifts
|
10 months ago |
Fenrir
|
cb67d92512
|
SoftwareKeyboard::get_string -> SoftwareKeyboard::launch
|
10 months ago |
Fenrir
|
0576e34c3f
|
Remove redudant imports
|
10 months ago |
Fenrir
|
144658345c
|
MessageCallbackData doesn't need to be a struct member
|
10 months ago |
Fenrir
|
f715fc6eb9
|
Add some comments
|
10 months ago |
Fenrir
|
d6f22dc797
|
Use .cast() in more places
|
10 months ago |
Fenrir
|
03b417dc9e
|
code_point -> code_unit
|
10 months ago |
Fenrir
|
cfd276c175
|
Get rid of static mut by using our own callback data
|
10 months ago |
Fenrir
|
757afe9fe6
|
Make swkbd_input_text a method for SoftwareKeyboard
This lets us mark the function as safe since it can only
be called with an initialized `SwkbdState`
|
10 months ago |
Fenrir
|
271d1b598a
|
Fix yet another off-by-one error
|
10 months ago |
Fenrir
|
bf3ca2a87d
|
Force consistent use of unsafe blocks
Isolating unsafe code is still important even in unsafe functions
|
10 months ago |
Fenrir
|
b6fc9a2596
|
Simplify some code + rename vars
|
10 months ago |
Fenrir
|
f527623405
|
Fix off-by-one error in swkbd_message_callback
|
10 months ago |
Fenrir
|
2fcdd110d2
|
Simplify string output logic
|
10 months ago |
Fenrir
|
4de76522d3
|
swkbd_input_text is still an unsafe fn
|
10 months ago |
Fenrir
|
61f91312d3
|
Remove mention of deleted function
|
10 months ago |
Fenrir
|
f867d965f8
|
Use if let instead of unwrap for nullable callback
|
10 months ago |
Fenrir
|
fa6f98d62c
|
Simplify string conversion code
|
10 months ago |
Fenrir
|
bd19f97050
|
Use rust functions instead of memcpy and memset
|
10 months ago |
Fenrir
|
3a2000f6f5
|
Use references and make unsafe blocks more fine-grained
|
10 months ago |
Fenrir
|
5413e77ec3
|
Use .is_null() instead of comparing to std::ptr::null()
|
10 months ago |
Fenrir
|
2864c06207
|
Don't include nul terminator when passing string data back to Rust
|
10 months ago |
Fenrir
|
742ec8d738
|
Get swkbd input without max byte size parameter
Is this much unsafe code worth such a small quality of life change?
Maybe!
|
10 months ago |
Meziu
|
4dbe83e26d
|
Merge pull request #158 from FenrirWolf/swkbd-initial-text
|
10 months ago |
Meziu
|
ae77de421d
|
Merge pull request #159 from FenrirWolf/fix-console
|
10 months ago |
Fenrir
|
9eea3f0d1f
|
Make initial text argument optional
This allows the user to clear the initial_text field by supplying a
`None`
|
10 months ago |
Fenrir
|
a0aa6d5d9e
|
Wrap PrintConsole in UnsafeCell
|
10 months ago |
Fenrir
|
684bfb3251
|
Use addr_of_mut! when referring to EMPTY_CONSOLE
|
10 months ago |
Fenrir
|
22773f644a
|
Store initial_text data in SoftwareKeyboard
|
10 months ago |
Meziu
|
947c3f4c5e
|
Merge pull request #149 from rust3ds/fix/applets
Applets fixup and feature implementation
|
12 months ago |
Andrea Ciliberti
|
5948589bdb
|
Fix suggestions
|
12 months ago |
Meziu
|
b1021c54ef
|
Merge pull request #150 from rust3ds/remove/fs
Removal of all FS code and member renaming
|
12 months ago |
Andrea Ciliberti
|
cdd31d3091
|
Fmt
|
12 months ago |
Andrea Ciliberti
|
fcbbf0ef30
|
Fix tests
|
12 months ago |
Andrea Ciliberti
|
b92074d35a
|
Fmt
|
12 months ago |
Andrea Ciliberti
|
1413bfa201
|
New filter callback
|
12 months ago |
Andrea Ciliberti
|
366f4d4b1b
|
Zero bufsize for parental lock
|
12 months ago |
Andrea Ciliberti
|
a727feb11c
|
Fixed nits
|
12 months ago |