Copyright | (c) James Sully 2020-2021 |
---|---|
License | BSD 3-Clause |
Maintainer | sullyj3@gmail.com |
Stability | experimental |
Portability | untested |
Safe Haskell | None |
Language | Haskell2010 |
Types for representing sex toys, as well as ways of actuating them.
Synopsis
- data MessageAttributes = MessageAttributes {
- attrFeatureCount :: Maybe Word
- attrStepCount :: Maybe [Word]
- data Device = Device {}
- data DeviceMessageType
Documentation
data MessageAttributes Source #
For a particular actuation feature (Vibration, Rotation, or Linear), represents how many of that feature the device has, and the available resolution of control of that feature. See (https://buttplug-spec.docs.buttplug.io/enumeration.html#message-attributes-for-devicelist-and-deviceadded) for details.
Instances
An intimate device, containing info about the functionality it supports.
Instances
Eq Device Source # | |
Show Device Source # | |
Generic Device Source # | |
FromJSON Device Source # | |
Defined in Buttplug.Core.Device parseJSON :: Value -> Parser Device parseJSONList :: Value -> Parser [Device] | |
ToJSON Device Source # | |
Defined in Buttplug.Core.Device toEncoding :: Device -> Encoding toJSONList :: [Device] -> Value toEncodingList :: [Device] -> Encoding | |
type Rep Device Source # | |
Defined in Buttplug.Core.Device type Rep Device = D1 ('MetaData "Device" "Buttplug.Core.Device" "buttplug-hs-core-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Device" 'PrefixI 'True) (S1 ('MetaSel ('Just "deviceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "deviceIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word) :*: S1 ('MetaSel ('Just "deviceMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map DeviceMessageType MessageAttributes))))) |
data DeviceMessageType Source #
Represents which message types the device supports See (https://buttplug-spec.docs.buttplug.io/enumeration.html#message-attributes-for-devicelist-and-deviceadded) for details.
DevRawWriteCmd | |
DevRawReadCmd | |
DevRawSubscribeCmd | |
DevRawUnsubscribeCmd | |
DevStopDeviceCmd | |
DevVibrateCmd | |
DevLinearCmd | |
DevRotateCmd |