input

package
v0.0.0-...-62e5a7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceReceived

func ForceReceived(f physic.Force) display.ActualInput

ForceReceived returns an ActualInput for force received Deprecated: use DynamicForceInput instead

func ForceRequired

func ForceRequired(f physic.Force) display.ExpectedInput

Types

type DynamicEdgeInput

type DynamicEdgeInput struct {
	// contains filtered or unexported fields
}

func (*DynamicEdgeInput) GetValue

func (input *DynamicEdgeInput) GetValue() display.UserInputValue

func (*DynamicEdgeInput) Satisfies

func (input *DynamicEdgeInput) Satisfies(expectedInput display.ExpectedInput) bool

func (*DynamicEdgeInput) Update

func (input *DynamicEdgeInput) Update(samples ...loadcell.ForceSample)

type DynamicForceInput

type DynamicForceInput struct {
	// contains filtered or unexported fields
}

func (*DynamicForceInput) GetForce

func (input *DynamicForceInput) GetForce() physic.Force

func (*DynamicForceInput) GetValue

func (input *DynamicForceInput) GetValue() display.UserInputValue

func (*DynamicForceInput) Satisfies

func (input *DynamicForceInput) Satisfies(expected display.ExpectedInput) bool

func (*DynamicForceInput) UpdateForceInput

func (input *DynamicForceInput) UpdateForceInput(f physic.Force)

type EdgeInput

type EdgeInput interface {
	display.ExpectedInput
	// contains filtered or unexported methods
}

func RisingEdge

func RisingEdge(f physic.Force) EdgeInput

type ForceInput

type ForceInput interface {
	display.ExpectedInput
	GetForce() physic.Force
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL