Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions examples/ClockKey.dui/layout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions examples/ClockKey.dui/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: ClockKey
type: Key
version: 1
description: Analog Clock
author: Graphras.com
license: Apache-2.0
category: utilities
layout: layout.svg

bindings:
second_hand:
type: transform
node: second_hand
default: 0
transforms:
- kind: rotate
from: 00
to: 360
origin: 0 0

minute_hand:
type: transform
node: minute_hand
default: 0
transforms:
- kind: rotate
from: 00
to: 360
origin: 0 0

hour_hand:
type: transform
node: hour_hand
default: 0
transforms:
- kind: rotate
from: 0
to: 360
origin: 0 0

events:
- name: click
source: key_press_release
max_duration_ms: 300

- name: hold
source: key_hold
hold_ms: 350

- name: press
source: key_press

- name: release
source: key_release
Loading
Loading