Skip to content

Commit

Permalink
feat(Triggers): add temporary keyboard shortcuts for prompter speed
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarpl committed Feb 1, 2024
1 parent 989440f commit e781c9d
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions packages/apps/client/src/lib/triggers/triggers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,36 @@ import { TriggerConfig, TriggerConfigType } from './triggerConfig.ts'

// We might move these to a config file later:
export const hardCodedTriggers: TriggerConfig[] = [
// {
// type: TriggerConfigType.KEYBOARD,
// keys: 'ArrowUp',
// action: {
// type: 'prompterSetSpeed',
// payload: {
// speed: -0.3,
// },
// },
// },
// {
// type: TriggerConfigType.KEYBOARD,
// keys: 'ArrowDown',
// action: {
// type: 'prompterSetSpeed',
// payload: {
// speed: 0.3,
// },
// },
// },
// {
// type: TriggerConfigType.KEYBOARD,
// keys: 'Numpad0',
// action: {
// type: 'prompterSetSpeed',
// payload: {
// speed: 0,
// },
// },
// },
{
type: TriggerConfigType.KEYBOARD,
keys: 'F4',
action: {
type: 'prompterAddSpeed',
payload: {
deltaSpeed: -0.3,
},
},
},
{
type: TriggerConfigType.KEYBOARD,
keys: 'F6',
action: {
type: 'prompterAddSpeed',
payload: {
deltaSpeed: 0.3,
},
},
},
{
type: TriggerConfigType.KEYBOARD,
keys: 'F5',
action: {
type: 'prompterSetSpeed',
payload: {
speed: 0,
},
},
},
{
type: TriggerConfigType.XKEYS,
productId: null,
Expand Down

0 comments on commit e781c9d

Please sign in to comment.