LIKO-12
  • Docs
  • Help
  • Blog

›Peripherals

Introduction

  • What is LIKO-12
  • How to install LIKO-12
  • Getting started
  • Your first LIKO-12 program

Peripherals

  • Audio
  • BIOS - Basic Integrated Operating System
  • CPU - Central Processing Unit
  • FDD - Floppy Disk Drive
  • Gamepad
  • GPU - Graphics Processing Unit
  • HDD - Hard Disk Drive
  • Keyboard
  • RAM - Random Access Memory
  • TouchControls - The Touch Gamepad Input
  • WEB

Peripherals' Objects

  • GPU / fontData
  • GPU / image
  • GPU / imageData
  • GPU / quad
  • GPU / spriteBatch
  • WEB / response
Edit

TouchControls - The Touch Gamepad Input

Shows a gamepad like touch controls for mobile users.

  • Version: v1.0.0
  • Available since: LIKO-12 v0.6.0
  • Last updated in: LIKO-12 v0.8.0

Methods:


TouchControls.setInput

Turns on or off the touch controls.

  • Available since: TouchControls: v1.0.0, LIKO-12: v0.6.0
  • Last updated in: TouchControls: v1.0.0, LIKO-12: v0.8.0
TouchControls.setInput(bool)

Arguments:

  • <bool> (boolean): Wheather the touch controls should be on

Events:

Please note that the example functions won't be called automatically, there must be some kind of an events handler for CPU.pullEvent, check if the LIKO-12 OS you're using has one.


touchcontrol

Triggered when the state of a virtual touch button has changed.

  • Available since: TouchControls: v1.0.0, LIKO-12: v0.7.0
  • Last updated in: TouchControls: v1.0.0, LIKO-12: v0.7.0
function _touchcontrol(state, button)
    --Content run when the event is triggered
end

Arguments:

  • state (boolean): The state of the button: True when pressed, False when released.
  • button (number): The ID of the button: (1: Left, 2: Right, 3: Up, 4: Down, 5: A, 6: B, 6: Start).
← RAM - Random Access MemoryWEB →
  • Methods:
    • TouchControls.setInput
  • Events:
    • touchcontrol
LIKO-12
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
Project Chat (Discord)Twitter
More
BlogGitHubStar
Copyright © 2020 The LIKO-12 Organization