Repository navigation
Add no-repeat cli option - #1623
xeropresence wants to merge 1 commit into
Conversation
|
Thank you. 👍
I moved the (I renamed to
I added documentation in that last commit. The branch is
if the |
|
Seems to work fine. I see you inverted the naming scheme of the option. 434ffbd#diff-1e7437254ef4ba8f538e75a3bd53846fR414
vs 94269cc#diff-1e7437254ef4ba8f538e75a3bd53846fR465
I think ignore_key_repeat is easier to understand at first glance rather then !im->forward_key_repeat, but other then that it all looks good. |
|
With display no longer being a variable then that should no longer be needed as well right? |
|
Thank you for the feedbacks.
The idea is to use boolean flags with a "positive" meaning. For example Here, the condition in the block is negative because it's an early return (an early return is often used in the negative form): if (im->forward_key_repeat) {
// forward event
}vs if (!im->forward_key_repeat) {
return;
}
// forward_event
It's removed: 65d06a3#diff-4dd0bcc81fa9404d5dd8572e7682d3c5L248 |
|
Merged 84f1d9e |
Still need documentation, not sure what you would want to put in there.
This modifies event_loop to pass down the option struct instead of passing the individual options as it seemed silly to expand the function to add a third param.
Not sure of the point of
https://github.com/xeropresence/scrcpy/commit/434ffbdbc1395de4a8382345fcc19d1c745a3d14#diff-4dd0bcc81fa9404d5dd8572e7682d3c5R245