Packages

class Keyboard extends AnyRef

Source
keyboard.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Keyboard
  2. AnyRef
  3. Any
Implicitly
  1. by richDrxAny
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Keyboard(keyLookup: Map[String, KeyCode])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Keyboard toany2stringadd[Keyboard] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def +=(keyCode: KeyCode): Unit

    keyPressed

  5. def -=(keyCode: KeyCode): Unit

    keyReleased

  6. def ->[B](y: B): (Keyboard, B)
    Implicit
    This member is added by an implicit conversion from Keyboard toArrowAssoc[Keyboard] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. def ==(str: String): Boolean

    an exact test where the composed string is the exact state of the key codes pressed

  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. val SHIFT: KeyCode
  10. def apply(str: String): Boolean

    contains like test

  11. def applyIf(t: Boolean, f: (Keyboard) => Keyboard): Keyboard
    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  12. def applyIf(t: (Keyboard) => Boolean)(f: (Keyboard) => Keyboard): Keyboard

    better chaining for types

    better chaining for types

    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clear(): Unit

    clear all internal mutable state

  15. def clearHeld(): Unit

    clear only the currently held variables

  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  17. def contains(str: String): Boolean

    contains like test

  18. def count(up: String, down: String): Int

    count up and down

  19. def count(key: String): Int

    count

  20. def elementOf(xs: Set[Keyboard]): Boolean
    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  21. def ensuring(cond: (Keyboard) => Boolean, msg: => Any): Keyboard
    Implicit
    This member is added by an implicit conversion from Keyboard toEnsuring[Keyboard] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: (Keyboard) => Boolean): Keyboard
    Implicit
    This member is added by an implicit conversion from Keyboard toEnsuring[Keyboard] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean, msg: => Any): Keyboard
    Implicit
    This member is added by an implicit conversion from Keyboard toEnsuring[Keyboard] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: Boolean): Keyboard
    Implicit
    This member is added by an implicit conversion from Keyboard toEnsuring[Keyboard] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  27. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  28. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Keyboard toStringFormat[Keyboard] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def histogram: Map[KeyState, Int]

    immutable version of the internal count state

  32. lazy val inverseKeyLookup: Map[KeyCode, String]
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def keyState(str: String): KeyState

    this is the primary interface for the lookup

  35. def keyState: KeyState
  36. implicit val keyboard: Keyboard
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. def noneIf(f: (Keyboard) => Boolean): Option[Keyboard]
    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. def on[A](keyStateString: String)(f: => Unit): Unit
  42. def optionIf(f: (Keyboard) => Boolean): Option[Keyboard]

    optionally wrap an object

    optionally wrap an object

    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  43. def preApply[B](f: (Keyboard) => B): B

    a preApply f => f(a)

    a preApply f => f(a)

    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  44. def sideEffect(f: (Keyboard) => Unit): Keyboard

    side effect filter

    side effect filter

    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  45. def someIf(f: (Keyboard) => Boolean): Option[Keyboard]
    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. val thisAny: Keyboard
    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  48. def toString(): String

    current key state as a nice string

    current key state as a nice string

    Definition Classes
    Keyboard → AnyRef → Any
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def ?>(f: (Keyboard) => Boolean): Option[Keyboard]

    alias for option if

    alias for option if

    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) to many symbols are hard to undertand

  2. def |>[B](f: (Keyboard) => B): B
    Implicit
    This member is added by an implicit conversion from Keyboard toDrxAny[Keyboard] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use preApply if you must (symbols are concise without concision)

  3. def [B](y: B): (Keyboard, B)
    Implicit
    This member is added by an implicit conversion from Keyboard toArrowAssoc[Keyboard] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion richDrxAny fromKeyboard to DrxAny[Keyboard]

Inherited by implicit conversion any2stringadd fromKeyboard to any2stringadd[Keyboard]

Inherited by implicit conversion StringFormat fromKeyboard to StringFormat[Keyboard]

Inherited by implicit conversion Ensuring fromKeyboard to Ensuring[Keyboard]

Inherited by implicit conversion ArrowAssoc fromKeyboard to ArrowAssoc[Keyboard]

Ungrouped