Skip to content

Commit

Permalink
Gui: reversere input support
Browse files Browse the repository at this point in the history
  • Loading branch information
skotopes committed Dec 20, 2023
1 parent 23ad19a commit db4e721
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.22]
### Added
- StartVirtualDisplayRequest: optional send_input to request input from device

## [0.21]
### Added
- Application AppButtonPressRequest now supports button indices in addition to names.
Expand Down
8 changes: 4 additions & 4 deletions flipper.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ enum CommandStatus {
/**< Common Errors */
ERROR = 1; /**< Unknown error */
ERROR_DECODE = 2; /**< Command can't be decoded successfully - command_id in response may be wrong! */
ERROR_NOT_IMPLEMENTED = 3; /**< Command succesfully decoded, but not implemented (deprecated or not yet implemented) */
ERROR_NOT_IMPLEMENTED = 3; /**< Command successfully decoded, but not implemented (deprecated or not yet implemented) */
ERROR_BUSY = 4; /**< Somebody took global lock, so not all commands are available */
ERROR_CONTINUOUS_COMMAND_INTERRUPTED = 14; /**< Not received has_next == 0 */
ERROR_INVALID_PARAMETERS = 15; /**< not provided (or provided invalid) crucial parameters to perform rpc */
ERROR_INVALID_PARAMETERS = 15; /**< not provided (or provided invalid) crucial parameters to perform RPC */

/**< Storage Errors */
ERROR_STORAGE_NOT_READY = 5; /**< FS not ready */
ERROR_STORAGE_EXIST = 6; /**< File/Dir alrady exist */
ERROR_STORAGE_EXIST = 6; /**< File/Dir already exist */
ERROR_STORAGE_NOT_EXIST = 7; /**< File/Dir does not exist */
ERROR_STORAGE_INVALID_PARAMETER = 8; /**< Invalid API parameter */
ERROR_STORAGE_DENIED = 9; /**< Access denied */
ERROR_STORAGE_INVALID_NAME = 10; /**< Invalid name/path */
ERROR_STORAGE_INTERNAL = 11; /**< Internal error */
ERROR_STORAGE_NOT_IMPLEMENTED = 12; /**< Functon not implemented */
ERROR_STORAGE_NOT_IMPLEMENTED = 12; /**< Function is not implemented */
ERROR_STORAGE_ALREADY_OPEN = 13; /**< File/Dir already opened */
ERROR_STORAGE_DIR_NOT_EMPTY = 18; /**< Directory, you're going to remove is not empty */

Expand Down
17 changes: 9 additions & 8 deletions gui.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ enum InputKey {
};

enum InputType {
PRESS = 0; /**< Press event, emitted after debounce */
RELEASE = 1; /**< Release event, emitted after debounce */
PRESS = 0; /**< Press event, emitted after de-bounce */
RELEASE = 1; /**< Release event, emitted after de-bounce */
SHORT = 2; /**< Short event, emitted after InputTypeRelease done withing INPUT_LONG_PRESS interval */
LONG = 3; /**< Long event, emmited after INPUT_LONG_PRESS interval, asynchronouse to InputTypeRelease */
REPEAT = 4; /**< Repeat event, emmited with INPUT_REPEATE_PRESS period after InputTypeLong event */
LONG = 3; /**< Long event, emitted after INPUT_LONG_PRESS interval, asynchronous to InputTypeRelease */
REPEAT = 4; /**< Repeat event, emitted with INPUT_REPEATE_PRESS period after InputTypeLong event */
}

enum ScreenOrientation {
HORIZONTAL = 0; /**< Horizontal */
HORIZONTAL_FLIP = 1; /**< Horizontal flipped (180)*/
VERTICAL = 2; /**< Vertical (90)*/
VERTICAL_FLIP = 3; /**< Vertical flipped */
HORIZONTAL_FLIP = 1; /**< Horizontal flipped (180) */
VERTICAL = 2; /**< Vertical (90) */
VERTICAL_FLIP = 3; /**< Vertical flipped (270) */
}

message ScreenFrame {
Expand All @@ -44,7 +44,8 @@ message SendInputEventRequest {
}

message StartVirtualDisplayRequest {
ScreenFrame first_frame = 1; // optional
ScreenFrame first_frame = 1; /**< Optional: screen frame to show */
bool send_input = 2; /**< Optional: send flipper input */
}

message StopVirtualDisplayRequest {
Expand Down

0 comments on commit db4e721

Please sign in to comment.