Home  Contents

Introduction

Keyboard Core4 Lua Event System

DESCRIPTION

The Keyboard module provides event handling support for keyboard and keypad input.

Most Core4 based controllers have hardware support for a 4x4 keypad matrix. On controllers with USB Host support, standard USB keyboards can be connected, too.

Call keyboard.new() to create a new event handler. Received events are reported via the callbacks keyboard.event() and keyboard.key().

Use keyboard:setMap() to configure a matrix keypad. Since SDK 2.91.0, this call is mandatory and the keypad will not work without it.

A USB keyboard needs to have its language configured using keyboard:setCountry().