KeyboardButton

from panda3d.core import KeyboardButton
class KeyboardButton

Bases: DTOOL_SUPER_BASE

This class is just used as a convenient namespace for grouping all of these handy functions that return buttons which map to standard keyboard keys.

Inheritance diagram

Inheritance diagram of KeyboardButton

__init__(*args, **kwargs)
alt()

C++ Interface: alt()

asciiKey()

C++ Interface: ascii_key(char ascii_equivalent)

/**
  • Returns the ButtonHandle associated with the particular ASCII character, if

  • there is one, or ButtonHandle::none() if there is not.

*/

ascii_key()

C++ Interface: ascii_key(char ascii_equivalent)

/**
  • Returns the ButtonHandle associated with the particular ASCII character, if

  • there is one, or ButtonHandle::none() if there is not.

*/

backspace()

C++ Interface: backspace()

capsLock()

C++ Interface: caps_lock()

caps_lock()

C++ Interface: caps_lock()

control()

C++ Interface: control()

down()

C++ Interface: down()

end()

C++ Interface: end()

enter()

C++ Interface: enter()

escape()

C++ Interface: escape()

f1()

C++ Interface: f1()

f10()

C++ Interface: f10()

f11()

C++ Interface: f11()

f12()

C++ Interface: f12()

f13()

C++ Interface: f13()

// PC keyboards don’t have these four buttons, but Macs do.

f14()

C++ Interface: f14()

f15()

C++ Interface: f15()

f16()

C++ Interface: f16()

f2()

C++ Interface: f2()

f3()

C++ Interface: f3()

f4()

C++ Interface: f4()

f5()

C++ Interface: f5()

f6()

C++ Interface: f6()

f7()

C++ Interface: f7()

f8()

C++ Interface: f8()

f9()

C++ Interface: f9()

help()

C++ Interface: help()

// delete is a C++ keyword.

home()

C++ Interface: home()

insert()

C++ Interface: insert()

lalt()

C++ Interface: lalt()

lcontrol()

C++ Interface: lcontrol()

left()

C++ Interface: left()

lmeta()

C++ Interface: lmeta()

lshift()

C++ Interface: lshift()

menu()

C++ Interface: menu()

meta()

C++ Interface: meta()

numLock()

C++ Interface: num_lock()

num_lock()

C++ Interface: num_lock()

pageDown()

C++ Interface: page_down()

pageUp()

C++ Interface: page_up()

page_down()

C++ Interface: page_down()

page_up()

C++ Interface: page_up()

pause()

C++ Interface: pause()

printScreen()

C++ Interface: print_screen()

print_screen()

C++ Interface: print_screen()

ralt()

C++ Interface: ralt()

rcontrol()

C++ Interface: rcontrol()

right()

C++ Interface: right()

rmeta()

C++ Interface: rmeta()

rshift()

C++ Interface: rshift()

scrollLock()

C++ Interface: scroll_lock()

scroll_lock()

C++ Interface: scroll_lock()

shift()

C++ Interface: shift()

shiftLock()

C++ Interface: shift_lock()

shift_lock()

C++ Interface: shift_lock()

space()

C++ Interface: space()

tab()

C++ Interface: tab()

up()

C++ Interface: up()