Module: LiteRGSS::Input::Keyboard

Defined in:
LiteRGSS.rb

Overview

Module that holds the key id of the keyboard according to SFML

Constant Summary

A =

sf::Keyboard::A

Integer(sf::Keyboard::A)
B =

sf::Keyboard::B

Integer(sf::Keyboard::B)
C =

sf::Keyboard::C

Integer(sf::Keyboard::C)
D =

sf::Keyboard::D

Integer(sf::Keyboard::D)
E =

sf::Keyboard::E

Integer(sf::Keyboard::E)
F =

sf::Keyboard::F

Integer(sf::Keyboard::F)
G =

sf::Keyboard::G

Integer(sf::Keyboard::G)
H =

sf::Keyboard::H

Integer(sf::Keyboard::H)
I =

sf::Keyboard::I

Integer(sf::Keyboard::I)
J =

sf::Keyboard::J

Integer(sf::Keyboard::J)
K =

sf::Keyboard::K

Integer(sf::Keyboard::K)
L =

sf::Keyboard::L

Integer(sf::Keyboard::L)
M =

sf::Keyboard::M

Integer(sf::Keyboard::M)
N =

sf::Keyboard::N

Integer(sf::Keyboard::N)
O =

sf::Keyboard::O

Integer(sf::Keyboard::O)
P =

sf::Keyboard::P

Integer(sf::Keyboard::P)
Q =

sf::Keyboard::Q

Integer(sf::Keyboard::Q)
R =

sf::Keyboard::R

Integer(sf::Keyboard::R)
S =

sf::Keyboard::S

Integer(sf::Keyboard::S)
T =

sf::Keyboard::T

Integer(sf::Keyboard::T)
U =

sf::Keyboard::U

Integer(sf::Keyboard::U)
V =

sf::Keyboard::V

Integer(sf::Keyboard::V)
W =

sf::Keyboard::W

Integer(sf::Keyboard::W)
X =

sf::Keyboard::X

Integer(sf::Keyboard::X)
Y =

sf::Keyboard::Y

Integer(sf::Keyboard::Y)
Z =

sf::Keyboard::Z

Integer(sf::Keyboard::Z)
Num0 =

sf::Keyboard::Num0

Integer(sf::Keyboard::Num0)
Num1 =

sf::Keyboard::Num1

Integer(sf::Keyboard::Num1)
Num2 =

sf::Keyboard::Num2

Integer(sf::Keyboard::Num2)
Num3 =

sf::Keyboard::Num3

Integer(sf::Keyboard::Num3)
Num4 =

sf::Keyboard::Num4

Integer(sf::Keyboard::Num4)
Num5 =

sf::Keyboard::Num5

Integer(sf::Keyboard::Num5)
Num6 =

sf::Keyboard::Num6

Integer(sf::Keyboard::Num6)
Num7 =

sf::Keyboard::Num7

Integer(sf::Keyboard::Num7)
Num8 =

sf::Keyboard::Num8

Integer(sf::Keyboard::Num8)
Num9 =

sf::Keyboard::Num9

Integer(sf::Keyboard::Num9)
Escape =

sf::Keyboard::Escape

Integer(sf::Keyboard::Escape)
LControl =

sf::Keyboard::LControl

Integer(sf::Keyboard::LControl)
LShift =

sf::Keyboard::LShift

Integer(sf::Keyboard::LShift)
LAlt =

sf::Keyboard::LAlt

Integer(sf::Keyboard::LAlt)
LSystem =

sf::Keyboard::LSystem

Integer(sf::Keyboard::LSystem)
RControl =

sf::Keyboard::RControl

Integer(sf::Keyboard::RControl)
RShift =

sf::Keyboard::RShift

Integer(sf::Keyboard::RShift)
RAlt =

sf::Keyboard::RAlt

Integer(sf::Keyboard::RAlt)
RSystem =

sf::Keyboard::RSystem

Integer(sf::Keyboard::RSystem)
Integer(sf::Keyboard::Menu)
LBracket =

sf::Keyboard::LBracket

Integer(sf::Keyboard::LBracket)
RBracket =

sf::Keyboard::RBracket

Integer(sf::Keyboard::RBracket)
SemiColon =

sf::Keyboard::SemiColon

Integer(sf::Keyboard::SemiColon)
Comma =

sf::Keyboard::Comma

Integer(sf::Keyboard::Comma)
Period =

sf::Keyboard::Period

Integer(sf::Keyboard::Period)
Quote =

sf::Keyboard::Quote

Integer(sf::Keyboard::Quote)
Slash =

sf::Keyboard::Slash

Integer(sf::Keyboard::Slash)
BackSlash =

sf::Keyboard::BackSlash

Integer(sf::Keyboard::BackSlash)
Tilde =

sf::Keyboard::Tilde

Integer(sf::Keyboard::Tilde)
Equal =

sf::Keyboard::Equal

Integer(sf::Keyboard::Equal)
Dash =

sf::Keyboard::Dash

Integer(sf::Keyboard::Dash)
Space =

sf::Keyboard::Space

Integer(sf::Keyboard::Space)
Return =

sf::Keyboard::Return

Integer(sf::Keyboard::Return)
BackSpace =

sf::Keyboard::BackSpace

Integer(sf::Keyboard::BackSpace)
Tab =

sf::Keyboard::Tab

Integer(sf::Keyboard::Tab)
PageUp =

sf::Keyboard::PageUp

Integer(sf::Keyboard::PageUp)
PageDown =

sf::Keyboard::PageDown

Integer(sf::Keyboard::PageDown)
End =

sf::Keyboard::End

Integer(sf::Keyboard::End)
Home =

sf::Keyboard::Home

Integer(sf::Keyboard::Home)
Insert =

sf::Keyboard::Insert

Integer(sf::Keyboard::Insert)
Delete =

sf::Keyboard::Delete

Integer(sf::Keyboard::Delete)
Add =

sf::Keyboard::Add

Integer(sf::Keyboard::Add)
Subtract =

sf::Keyboard::Subtract

Integer(sf::Keyboard::Subtract)
Multiply =

sf::Keyboard::Multiply

Integer(sf::Keyboard::Multiply)
Divide =

sf::Keyboard::Divide

Integer(sf::Keyboard::Divide)
Left =

sf::Keyboard::Left

Integer(sf::Keyboard::Left)
Right =

sf::Keyboard::Right

Integer(sf::Keyboard::Right)
Up =

sf::Keyboard::Up

Integer(sf::Keyboard::Up)
Down =

sf::Keyboard::Down

Integer(sf::Keyboard::Down)
Numpad0 =

sf::Keyboard::Numpad0

Integer(sf::Keyboard::Numpad0)
Numpad1 =

sf::Keyboard::Numpad1

Integer(sf::Keyboard::Numpad1)
Numpad2 =

sf::Keyboard::Numpad2

Integer(sf::Keyboard::Numpad2)
Numpad3 =

sf::Keyboard::Numpad3

Integer(sf::Keyboard::Numpad3)
Numpad4 =

sf::Keyboard::Numpad4

Integer(sf::Keyboard::Numpad4)
Numpad5 =

sf::Keyboard::Numpad5

Integer(sf::Keyboard::Numpad5)
Numpad6 =

sf::Keyboard::Numpad6

Integer(sf::Keyboard::Numpad6)
Numpad7 =

sf::Keyboard::Numpad7

Integer(sf::Keyboard::Numpad7)
Numpad8 =

sf::Keyboard::Numpad8

Integer(sf::Keyboard::Numpad8)
Numpad9 =

sf::Keyboard::Numpad9

Integer(sf::Keyboard::Numpad9)
F1 =

sf::Keyboard::F1

Integer(sf::Keyboard::F1)
F2 =

sf::Keyboard::F2

Integer(sf::Keyboard::F2)
F3 =

sf::Keyboard::F3

Integer(sf::Keyboard::F3)
F4 =

sf::Keyboard::F4

Integer(sf::Keyboard::F4)
F5 =

sf::Keyboard::F5

Integer(sf::Keyboard::F5)
F6 =

sf::Keyboard::F6

Integer(sf::Keyboard::F6)
F7 =

sf::Keyboard::F7

Integer(sf::Keyboard::F7)
F8 =

sf::Keyboard::F8

Integer(sf::Keyboard::F8)
F9 =

sf::Keyboard::F9

Integer(sf::Keyboard::F9)
F10 =

sf::Keyboard::F10

Integer(sf::Keyboard::F10)
F11 =

sf::Keyboard::F11

Integer(sf::Keyboard::F11)
F12 =

sf::Keyboard::F12

Integer(sf::Keyboard::F12)
F13 =

sf::Keyboard::F13

Integer(sf::Keyboard::F13)
F14 =

sf::Keyboard::F14

Integer(sf::Keyboard::F14)
F15 =

sf::Keyboard::F15

Integer(sf::Keyboard::F15)
Pause =

sf::Keyboard::Pause

Integer(sf::Keyboard::Pause)

Class Method Summary collapse

Class Method Details

.press?(key) ⇒ Boolean

Detect if a key is pressed

Parameters:

  • key (Integer)

Returns:

  • (Boolean)


848
849
# File 'LiteRGSS.rb', line 848

def press?(key)
end