Index

Package: Input_Handlers

Description

package Input_Handlers is
Copyright (c) 2012 Kevin Wellwood All rights reserved. This source code is distributed under the Modified BSD License. For terms and conditions, see license.txt.

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 listen from mouse and keyboard input from the OS and queue input events. Input_Handler objects may not be copied. Only one instance per application is necessary.

Types

A_Input_Handler

type A_Input_Handler is access all Input_Handler'Class;

Subprograms & Entries

Create_Input_Handler

function Create_Input_Handler
( mouseEnabled: Boolean ) return A_Input_Handler;
Creates a new Input_Handler to receive mouse and keyboard input from the OS and generate appropriate events.

Start

procedure Start
( this: not null access Input_Handler'Class );
Starts the Input_Handler's internal 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. It is called automatically during deletion.

Delete

procedure Delete
( this: in out A_Input_Handler );
Deletes the Input_Handler. It will be stopped if it is currently running.