Event

introprog.PixelWindow.Event
object Event

An object with integers representing events that can happen in a PixelWindow.

Attributes

Source
PixelWindow.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Event.type

Members list

Value members

Concrete methods

def show(event: Int): String

Returns a descriptive text for each event.

Returns a descriptive text for each event.

Attributes

Source
PixelWindow.scala

Concrete fields

val KeyPressed: Int

An integer representing a key down event.

An integer representing a key down event.

This value is returned by introprog.PixelWindow.lastEventType when the last event was that a user pressed a key on the keyboard. You can get a text describing the key by calling introprog.PixelWindow.lastKey

Attributes

Source
PixelWindow.scala
val KeyReleased: Int

An integer representing a key up event.

An integer representing a key up event.

This value is returned by introprog.PixelWindow.lastEventType when the last event was that a user released a key on the keyboard. You can get a text describing the key by calling introprog.PixelWindow.lastKey

Attributes

Source
PixelWindow.scala
val MousePressed: Int

An integer representing a mouse button down event.

An integer representing a mouse button down event.

This value is returned by introprog.PixelWindow.lastEventType when the last event was that a user pressed a mouse button. You can get the mouse position by calling introprog.PixelWindow.lastMousePos

Attributes

Source
PixelWindow.scala
val MouseReleased: Int

An integer representing a mouse button up event.

An integer representing a mouse button up event.

This value is returned by introprog.PixelWindow.lastEventType when the last thing that happened was that a user released a mouse button. You can get the mouse position by calling introprog.PixelWindow.lastMousePos

Attributes

Source
PixelWindow.scala
val Undefined: Int

An integer representing that no event is available.

An integer representing that no event is available.

This value is returned by introprog.PixelWindow.lastEventType when introprog.PixelWindow.awaitEvent has waited until its timeout or if introprog.PixelWindow.lastEventType was called before awaiting any event.

Attributes

Source
PixelWindow.scala
val WindowClosed: Int

An integer representing that a window close event has happened.

An integer representing that a window close event has happened.

This value is returned by introprog.PixelWindow.lastEventType when the last event was that a user has closed a window.

Attributes

Source
PixelWindow.scala