package_diagram gamnit::virtual_gamepad_spritesheet virtual_gamepad_spritesheet gamnit::textures textures gamnit::virtual_gamepad_spritesheet->gamnit::textures gamnit::display display gamnit::textures->gamnit::display ...gamnit::display ... ...gamnit::display->gamnit::display gamnit::virtual_gamepad virtual_gamepad gamnit::virtual_gamepad->gamnit::virtual_gamepad_spritesheet a_star-m a_star-m a_star-m->gamnit::virtual_gamepad a_star-m... ... a_star-m...->a_star-m

Ancestors

module abstract_collection

core :: abstract_collection

Abstract collection classes and services.
module abstract_text

core :: abstract_text

Abstract class for manipulation of sequences of characters
module array

core :: array

This module introduces the standard array structure.
module aware

android :: aware

Android compatibility module
module bitset

core :: bitset

Services to handle BitSet
module bytes

core :: bytes

Services for byte streams and arrays
module c

c :: c

Structures and services for compatibility with the C language
module circular_array

core :: circular_array

Efficient data structure to access both end of the sequence.
module codec_base

core :: codec_base

Base for codecs to use with streams
module codecs

core :: codecs

Group module for all codec-related manipulations
module collection

core :: collection

This module define several collection classes.
module core

core :: core

Standard classes and methods used by default by Nit programs and libraries.
module display

gamnit :: display

Abstract display services
module environ

core :: environ

Access to the environment variables of the process
module error

core :: error

Standard error-management infrastructure.
module exec

core :: exec

Invocation and management of operating system sub-processes.
module file

core :: file

File manipulations (create, read, write, etc.)
module fixed_ints

core :: fixed_ints

Basic integers of fixed-precision
module fixed_ints_text

core :: fixed_ints_text

Text services to complement fixed_ints
module flat

core :: flat

All the array-based text representations
module gc

core :: gc

Access to the Nit internal garbage collection mechanism
module glesv2

glesv2 :: glesv2

OpenGL graphics rendering library for embedded systems, version 2.0
module hash_collection

core :: hash_collection

Introduce HashMap and HashSet.
module input

mnit :: input

Defines abstract classes for user and general inputs to the application.
module iso8859_1

core :: iso8859_1

Codec for ISO8859-1 I/O
module kernel

core :: kernel

Most basic classes and methods.
module list

core :: list

This module handle double linked lists
module math

core :: math

Mathematical operations
module native

core :: native

Native structures for text and bytes
module numeric

core :: numeric

Advanced services for Numeric types
module protocol

core :: protocol

module queue

core :: queue

Queuing data structures and wrappers
module range

core :: range

Module for range of discrete objects.
module re

core :: re

Regular expression support for all services based on Pattern
module ropes

core :: ropes

Tree-based representation of a String.
module sorter

core :: sorter

This module contains classes used to compare things and sorts arrays.
module stream

core :: stream

Input and output streams of characters
module text

core :: text

All the classes and methods related to the manipulation of text entities
module time

core :: time

Management of time and dates
module union_find

core :: union_find

union–find algorithm using an efficient disjoint-set data structure
module utf8

core :: utf8

Codec for UTF-8 I/O

Parents

module textures

gamnit :: textures

Load textures, create subtextures and manage their life-cycle

Children

module virtual_gamepad

gamnit :: virtual_gamepad

Virtual gamepad mapped to keyboard keys for quick and dirty mobile support

Descendants

module a_star-m

a_star-m

import gamnit::textures

class VirtualGamepadSpritesheet

	private var root_texture = new Texture("images/virtual_gamepad.png")
	var a: Texture = root_texture.subtexture(856, 816, 162, 162)
	var b: Texture = root_texture.subtexture(1036, 816, 162, 162)
	var cancel: Texture = root_texture.subtexture(1036, 996, 162, 162)
	var down: Texture = root_texture.subtexture(1216, 636, 162, 162)
	var dpad_down: Texture = root_texture.subtexture(1136, 446, 124, 152)
	var dpad_left: Texture = root_texture.subtexture(1036, 296, 154, 124)
	var dpad_right: Texture = root_texture.subtexture(1206, 296, 152, 124)
	var dpad_up: Texture = root_texture.subtexture(1136, 116, 124, 154)
	var fire: Texture = root_texture.subtexture(1396, 996, 162, 162)
	var fist: Texture = root_texture.subtexture(1216, 996, 162, 162)
	var flag: Texture = root_texture.subtexture(1576, 816, 162, 162)
	var joystick_back: Texture = root_texture.subtexture(0, 0, 194, 194)
	var joystick_down: Texture = root_texture.subtexture(784, 30, 124, 152)
	var key: Texture = root_texture.subtexture(1576, 636, 162, 162)
	var left: Texture = root_texture.subtexture(676, 636, 162, 162)
	var ok: Texture = root_texture.subtexture(856, 996, 162, 162)
	var pedal: Texture = root_texture.subtexture(1576, 996, 162, 162)
	var right: Texture = root_texture.subtexture(856, 636, 162, 162)
	var star: Texture = root_texture.subtexture(1396, 636, 162, 162)
	var turn_left: Texture = root_texture.subtexture(676, 816, 162, 162)
	var turn_right: Texture = root_texture.subtexture(676, 996, 162, 162)
	var up: Texture = root_texture.subtexture(1036, 636, 162, 162)
	var x: Texture = root_texture.subtexture(1216, 816, 162, 162)
	var y: Texture = root_texture.subtexture(1396, 816, 162, 162)
end
lib/gamnit/virtual_gamepad/virtual_gamepad_spritesheet.nit:4,1--33,3