Safe Haskell | None |
---|---|
Language | Haskell2010 |
Datatypes corresponding to the constants in input-event-codes.h. See the Linux Kernel documentation for full details, noting that all names have been mechanically transformed into CamelCase.
Synopsis
- data EventType
- data SyncEvent
- data Key
- = KeyReserved
- | KeyEsc
- | Key1
- | Key2
- | Key3
- | Key4
- | Key5
- | Key6
- | Key7
- | Key8
- | Key9
- | Key0
- | KeyMinus
- | KeyEqual
- | KeyBackspace
- | KeyTab
- | KeyQ
- | KeyW
- | KeyE
- | KeyR
- | KeyT
- | KeyY
- | KeyU
- | KeyI
- | KeyO
- | KeyP
- | KeyLeftbrace
- | KeyRightbrace
- | KeyEnter
- | KeyLeftctrl
- | KeyA
- | KeyS
- | KeyD
- | KeyF
- | KeyG
- | KeyH
- | KeyJ
- | KeyK
- | KeyL
- | KeySemicolon
- | KeyApostrophe
- | KeyGrave
- | KeyLeftshift
- | KeyBackslash
- | KeyZ
- | KeyX
- | KeyC
- | KeyV
- | KeyB
- | KeyN
- | KeyM
- | KeyComma
- | KeyDot
- | KeySlash
- | KeyRightshift
- | KeyKpasterisk
- | KeyLeftalt
- | KeySpace
- | KeyCapslock
- | KeyF1
- | KeyF2
- | KeyF3
- | KeyF4
- | KeyF5
- | KeyF6
- | KeyF7
- | KeyF8
- | KeyF9
- | KeyF10
- | KeyNumlock
- | KeyScrolllock
- | KeyKp7
- | KeyKp8
- | KeyKp9
- | KeyKpminus
- | KeyKp4
- | KeyKp5
- | KeyKp6
- | KeyKpplus
- | KeyKp1
- | KeyKp2
- | KeyKp3
- | KeyKp0
- | KeyKpdot
- | KeyZenkakuhankaku
- | Key102nd
- | KeyF11
- | KeyF12
- | KeyRo
- | KeyKatakana
- | KeyHiragana
- | KeyHenkan
- | KeyKatakanahiragana
- | KeyMuhenkan
- | KeyKpjpcomma
- | KeyKpenter
- | KeyRightctrl
- | KeyKpslash
- | KeySysrq
- | KeyRightalt
- | KeyLinefeed
- | KeyHome
- | KeyUp
- | KeyPageup
- | KeyLeft
- | KeyRight
- | KeyEnd
- | KeyDown
- | KeyPagedown
- | KeyInsert
- | KeyDelete
- | KeyMacro
- | KeyMute
- | KeyVolumedown
- | KeyVolumeup
- | KeyPower
- | KeyKpequal
- | KeyKpplusminus
- | KeyPause
- | KeyScale
- | KeyKpcomma
- | KeyHangeul
- | KeyHanguel
- | KeyHanja
- | KeyYen
- | KeyLeftmeta
- | KeyRightmeta
- | KeyCompose
- | KeyStop
- | KeyAgain
- | KeyProps
- | KeyUndo
- | KeyFront
- | KeyCopy
- | KeyOpen
- | KeyPaste
- | KeyFind
- | KeyCut
- | KeyHelp
- | KeyMenu
- | KeyCalc
- | KeySetup
- | KeySleep
- | KeyWakeup
- | KeyFile
- | KeySendfile
- | KeyDeletefile
- | KeyXfer
- | KeyProg1
- | KeyProg2
- | KeyWww
- | KeyMsdos
- | KeyCoffee
- | KeyScreenlock
- | KeyRotateDisplay
- | KeyDirection
- | KeyCyclewindows
- | KeyMail
- | KeyBookmarks
- | KeyComputer
- | KeyBack
- | KeyForward
- | KeyClosecd
- | KeyEjectcd
- | KeyEjectclosecd
- | KeyNextsong
- | KeyPlaypause
- | KeyPrevioussong
- | KeyStopcd
- | KeyRecord
- | KeyRewind
- | KeyPhone
- | KeyIso
- | KeyConfig
- | KeyHomepage
- | KeyRefresh
- | KeyExit
- | KeyMove
- | KeyEdit
- | KeyScrollup
- | KeyScrolldown
- | KeyKpleftparen
- | KeyKprightparen
- | KeyNew
- | KeyRedo
- | KeyF13
- | KeyF14
- | KeyF15
- | KeyF16
- | KeyF17
- | KeyF18
- | KeyF19
- | KeyF20
- | KeyF21
- | KeyF22
- | KeyF23
- | KeyF24
- | KeyPlaycd
- | KeyPausecd
- | KeyProg3
- | KeyProg4
- | KeyDashboard
- | KeySuspend
- | KeyClose
- | KeyPlay
- | KeyFastforward
- | KeyBassboost
- | KeyPrint
- | KeyHp
- | KeyCamera
- | KeySound
- | KeyQuestion
- | KeyEmail
- | KeyChat
- | KeySearch
- | KeyConnect
- | KeyFinance
- | KeySport
- | KeyShop
- | KeyAlterase
- | KeyCancel
- | KeyBrightnessdown
- | KeyBrightnessup
- | KeyMedia
- | KeySwitchvideomode
- | KeyKbdillumtoggle
- | KeyKbdillumdown
- | KeyKbdillumup
- | KeySend
- | KeyReply
- | KeyForwardmail
- | KeySave
- | KeyDocuments
- | KeyBattery
- | KeyBluetooth
- | KeyWlan
- | KeyUwb
- | KeyUnknown
- | KeyVideoNext
- | KeyVideoPrev
- | KeyBrightnessCycle
- | KeyBrightnessAuto
- | KeyBrightnessZero
- | KeyDisplayOff
- | KeyWwan
- | KeyWimax
- | KeyRfkill
- | KeyMicmute
- | BtnMisc
- | Btn0
- | Btn1
- | Btn2
- | Btn3
- | Btn4
- | Btn5
- | Btn6
- | Btn7
- | Btn8
- | Btn9
- | BtnMouse
- | BtnLeft
- | BtnRight
- | BtnMiddle
- | BtnSide
- | BtnExtra
- | BtnForward
- | BtnBack
- | BtnTask
- | BtnJoystick
- | BtnTrigger
- | BtnThumb
- | BtnThumb2
- | BtnTop
- | BtnTop2
- | BtnPinkie
- | BtnBase
- | BtnBase2
- | BtnBase3
- | BtnBase4
- | BtnBase5
- | BtnBase6
- | BtnDead
- | BtnGamepad
- | BtnSouth
- | BtnA
- | BtnEast
- | BtnB
- | BtnC
- | BtnNorth
- | BtnX
- | BtnWest
- | BtnY
- | BtnZ
- | BtnTl
- | BtnTr
- | BtnTl2
- | BtnTr2
- | BtnSelect
- | BtnStart
- | BtnMode
- | BtnThumbl
- | BtnThumbr
- | BtnDigi
- | BtnToolPen
- | BtnToolRubber
- | BtnToolBrush
- | BtnToolPencil
- | BtnToolAirbrush
- | BtnToolFinger
- | BtnToolMouse
- | BtnToolLens
- | BtnToolQuinttap
- | BtnTouch
- | BtnStylus
- | BtnStylus2
- | BtnToolDoubletap
- | BtnToolTripletap
- | BtnToolQuadtap
- | BtnWheel
- | BtnGearDown
- | BtnGearUp
- | KeyOk
- | KeySelect
- | KeyGoto
- | KeyClear
- | KeyPower2
- | KeyOption
- | KeyInfo
- | KeyTime
- | KeyVendor
- | KeyArchive
- | KeyProgram
- | KeyChannel
- | KeyFavorites
- | KeyEpg
- | KeyPvr
- | KeyMhp
- | KeyLanguage
- | KeyTitle
- | KeySubtitle
- | KeyAngle
- | KeyZoom
- | KeyMode
- | KeyKeyboard
- | KeyScreen
- | KeyPc
- | KeyTv
- | KeyTv2
- | KeyVcr
- | KeyVcr2
- | KeySat
- | KeySat2
- | KeyCd
- | KeyTape
- | KeyRadio
- | KeyTuner
- | KeyPlayer
- | KeyText
- | KeyDvd
- | KeyAux
- | KeyMp3
- | KeyAudio
- | KeyVideo
- | KeyDirectory
- | KeyList
- | KeyMemo
- | KeyCalendar
- | KeyRed
- | KeyGreen
- | KeyYellow
- | KeyBlue
- | KeyChannelup
- | KeyChanneldown
- | KeyFirst
- | KeyLast
- | KeyAb
- | KeyNext
- | KeyRestart
- | KeySlow
- | KeyShuffle
- | KeyBreak
- | KeyPrevious
- | KeyDigits
- | KeyTeen
- | KeyTwen
- | KeyVideophone
- | KeyGames
- | KeyZoomin
- | KeyZoomout
- | KeyZoomreset
- | KeyWordprocessor
- | KeyEditor
- | KeySpreadsheet
- | KeyGraphicseditor
- | KeyPresentation
- | KeyDatabase
- | KeyNews
- | KeyVoicemail
- | KeyAddressbook
- | KeyMessenger
- | KeyDisplaytoggle
- | KeyBrightnessToggle
- | KeySpellcheck
- | KeyLogoff
- | KeyDollar
- | KeyEuro
- | KeyFrameback
- | KeyFrameforward
- | KeyContextMenu
- | KeyMediaRepeat
- | Key10channelsup
- | Key10channelsdown
- | KeyImages
- | KeyDelEol
- | KeyDelEos
- | KeyInsLine
- | KeyDelLine
- | KeyFn
- | KeyFnEsc
- | KeyFnF1
- | KeyFnF2
- | KeyFnF3
- | KeyFnF4
- | KeyFnF5
- | KeyFnF6
- | KeyFnF7
- | KeyFnF8
- | KeyFnF9
- | KeyFnF10
- | KeyFnF11
- | KeyFnF12
- | KeyFn1
- | KeyFn2
- | KeyFnD
- | KeyFnE
- | KeyFnF
- | KeyFnS
- | KeyFnB
- | KeyBrlDot1
- | KeyBrlDot2
- | KeyBrlDot3
- | KeyBrlDot4
- | KeyBrlDot5
- | KeyBrlDot6
- | KeyBrlDot7
- | KeyBrlDot8
- | KeyBrlDot9
- | KeyBrlDot10
- | KeyNumeric0
- | KeyNumeric1
- | KeyNumeric2
- | KeyNumeric3
- | KeyNumeric4
- | KeyNumeric5
- | KeyNumeric6
- | KeyNumeric7
- | KeyNumeric8
- | KeyNumeric9
- | KeyNumericStar
- | KeyNumericPound
- | KeyNumericA
- | KeyNumericB
- | KeyNumericC
- | KeyNumericD
- | KeyCameraFocus
- | KeyWpsButton
- | KeyTouchpadToggle
- | KeyTouchpadOn
- | KeyTouchpadOff
- | KeyCameraZoomin
- | KeyCameraZoomout
- | KeyCameraUp
- | KeyCameraDown
- | KeyCameraLeft
- | KeyCameraRight
- | KeyAttendantOn
- | KeyAttendantOff
- | KeyAttendantToggle
- | KeyLightsToggle
- | BtnDpadUp
- | BtnDpadDown
- | BtnDpadLeft
- | BtnDpadRight
- | KeyAlsToggle
- | KeyButtonconfig
- | KeyTaskmanager
- | KeyJournal
- | KeyControlpanel
- | KeyAppselect
- | KeyScreensaver
- | KeyVoicecommand
- | KeyBrightnessMin
- | KeyBrightnessMax
- | KeyKbdinputassistPrev
- | KeyKbdinputassistNext
- | KeyKbdinputassistPrevgroup
- | KeyKbdinputassistNextgroup
- | KeyKbdinputassistAccept
- | KeyKbdinputassistCancel
- | BtnTriggerHappy
- | BtnTriggerHappy1
- | BtnTriggerHappy2
- | BtnTriggerHappy3
- | BtnTriggerHappy4
- | BtnTriggerHappy5
- | BtnTriggerHappy6
- | BtnTriggerHappy7
- | BtnTriggerHappy8
- | BtnTriggerHappy9
- | BtnTriggerHappy10
- | BtnTriggerHappy11
- | BtnTriggerHappy12
- | BtnTriggerHappy13
- | BtnTriggerHappy14
- | BtnTriggerHappy15
- | BtnTriggerHappy16
- | BtnTriggerHappy17
- | BtnTriggerHappy18
- | BtnTriggerHappy19
- | BtnTriggerHappy20
- | BtnTriggerHappy21
- | BtnTriggerHappy22
- | BtnTriggerHappy23
- | BtnTriggerHappy24
- | BtnTriggerHappy25
- | BtnTriggerHappy26
- | BtnTriggerHappy27
- | BtnTriggerHappy28
- | BtnTriggerHappy29
- | BtnTriggerHappy30
- | BtnTriggerHappy31
- | BtnTriggerHappy32
- | BtnTriggerHappy33
- | BtnTriggerHappy34
- | BtnTriggerHappy35
- | BtnTriggerHappy36
- | BtnTriggerHappy37
- | BtnTriggerHappy38
- | BtnTriggerHappy39
- | BtnTriggerHappy40
- data RelativeAxis
- data AbsoluteAxis
- = AbsX
- | AbsY
- | AbsZ
- | AbsRx
- | AbsRy
- | AbsRz
- | AbsThrottle
- | AbsRudder
- | AbsWheel
- | AbsGas
- | AbsBrake
- | AbsHat0x
- | AbsHat0y
- | AbsHat1x
- | AbsHat1y
- | AbsHat2x
- | AbsHat2y
- | AbsHat3x
- | AbsHat3y
- | AbsPressure
- | AbsDistance
- | AbsTiltX
- | AbsTiltY
- | AbsToolWidth
- | AbsVolume
- | AbsMisc
- | AbsReserved
- | AbsMtSlot
- | AbsMtTouchMajor
- | AbsMtTouchMinor
- | AbsMtWidthMajor
- | AbsMtWidthMinor
- | AbsMtOrientation
- | AbsMtPositionX
- | AbsMtPositionY
- | AbsMtToolType
- | AbsMtBlobId
- | AbsMtTrackingId
- | AbsMtPressure
- | AbsMtDistance
- | AbsMtToolX
- | AbsMtToolY
- data SwitchEvent
- data MiscEvent
- data LEDEvent
- data RepeatEvent
- data SoundEvent
- data DeviceProperty
Documentation
Each of these corresponds to one of the contructors of EventData
. So you're unlikely to need to use these directly (C doesn't have ADTs - we do).
Instances
Bounded EventType Source # | |
Enum EventType Source # | |
Defined in Evdev.Codes succ :: EventType -> EventType # pred :: EventType -> EventType # fromEnum :: EventType -> Int # enumFrom :: EventType -> [EventType] # enumFromThen :: EventType -> EventType -> [EventType] # enumFromTo :: EventType -> EventType -> [EventType] # enumFromThenTo :: EventType -> EventType -> EventType -> [EventType] # | |
Eq EventType Source # | |
Ord EventType Source # | |
Defined in Evdev.Codes | |
Read EventType Source # | |
Show EventType Source # | |
Synchronization events
Instances
Bounded SyncEvent Source # | |
Enum SyncEvent Source # | |
Defined in Evdev.Codes succ :: SyncEvent -> SyncEvent # pred :: SyncEvent -> SyncEvent # fromEnum :: SyncEvent -> Int # enumFrom :: SyncEvent -> [SyncEvent] # enumFromThen :: SyncEvent -> SyncEvent -> [SyncEvent] # enumFromTo :: SyncEvent -> SyncEvent -> [SyncEvent] # enumFromThenTo :: SyncEvent -> SyncEvent -> SyncEvent -> [SyncEvent] # | |
Eq SyncEvent Source # | |
Ord SyncEvent Source # | |
Defined in Evdev.Codes | |
Read SyncEvent Source # | |
Show SyncEvent Source # | |
Keys and buttons
data RelativeAxis Source #
Relative changes
Instances
data AbsoluteAxis Source #
Absolute changes
Instances
data SwitchEvent Source #
Stateful binary switches
Instances
Miscellaneous
Instances
Bounded MiscEvent Source # | |
Enum MiscEvent Source # | |
Defined in Evdev.Codes succ :: MiscEvent -> MiscEvent # pred :: MiscEvent -> MiscEvent # fromEnum :: MiscEvent -> Int # enumFrom :: MiscEvent -> [MiscEvent] # enumFromThen :: MiscEvent -> MiscEvent -> [MiscEvent] # enumFromTo :: MiscEvent -> MiscEvent -> [MiscEvent] # enumFromThenTo :: MiscEvent -> MiscEvent -> MiscEvent -> [MiscEvent] # | |
Eq MiscEvent Source # | |
Ord MiscEvent Source # | |
Defined in Evdev.Codes | |
Read MiscEvent Source # | |
Show MiscEvent Source # | |
LEDs
LedNuml | |
LedCapsl | |
LedScrolll | |
LedCompose | |
LedKana | |
LedSleep | |
LedSuspend | |
LedMute | |
LedMisc | |
LedMail | |
LedCharging |
Instances
Bounded LEDEvent Source # | |
Enum LEDEvent Source # | |
Eq LEDEvent Source # | |
Ord LEDEvent Source # | |
Defined in Evdev.Codes | |
Read LEDEvent Source # | |
Show LEDEvent Source # | |
data RepeatEvent Source #
Specifying autorepeating events
Instances
data SoundEvent Source #
For simple sound output devices
Instances
data DeviceProperty Source #
Device properties
InputPropPointer | |
InputPropDirect | |
InputPropButtonpad | |
InputPropSemiMt | |
InputPropTopbuttonpad | |
InputPropPointingStick | |
InputPropAccelerometer |