Index

Package: Input_Handlers

Description

package Input_Handlers is

Classes

Input_Handler

type Input_Handler is new Limited_Object with private;

Ancestors:

Primitive operations:

Construct
Delete (overriding Objects.Delete)
Objects.Construct (Inherited)
Objects.To_String (Inherited)
An Input_Handler object runs an internal task to asynchronously poll input hardware and queue input events. Input_Handler objects may not be copied.

Types

A_Input_Handler

type A_Input_Handler is access all Input_Handler'Class;

Subprograms & Entries

Create_Input_Handler

function Create_Input_Handler
( hertz: Positive ) return A_Input_Handler;
Creates a new Input_Handler that will poll input devices at the given rate in hertz.

Start

procedure Start
( this: not null access Input_Handler'Class );
Starts the Input_Handler's listening task. Input events will begin queueing after this is called. This can only be called once during the life of the object.

Stop

procedure Stop
( this: not null access Input_Handler'Class );
Stops the Input_Handler's task. This is called automatically as part of deletion, or it can be called sooner if Start has already been called.

Delete

procedure Delete
( this: in out A_Input_Handler );
Deletes the Input_Handler.