Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Constants
Constants
This is the complete list of constants available in LOVE.
List of constants
love.key_unknown[integer]Represents an unknown key
love.key_first[integer]
love.key_backspace[integer]Backspace key
love.key_tab[integer]Tab key
love.key_clear[integer]
love.key_return[integer]Carriage return key
love.key_pause[integer]Pause key
love.key_escape[integer]Escape key
love.key_space[integer]Spacebar key
love.key_exclaim[integer]! key
love.key_quotedbl[integer]
love.key_hash[integer]# key
love.key_dollar[integer]$ key
love.key_ampersand[integer]& key
love.key_quote[integer]" key
love.key_leftparen[integer]( key
love.key_rightparen[integer]) key
love.key_asterisk[integer]* key
love.key_plus[integer]+ key
love.key_comma[integer], key
love.key_minus[integer]- key
love.key_period[integer]. key
love.key_slash[integer]/ key
love.key_0[integer]0 key
love.key_1[integer]1 key
love.key_2[integer]2 key
love.key_3[integer]3 key
love.key_4[integer]4 key
love.key_5[integer]5 key
love.key_6[integer]6 key
love.key_7[integer]7 key
love.key_8[integer]8 key
love.key_9[integer]9 key
love.key_colon[integer]: key
love.key_semicolon[integer]; key
love.key_less[integer]< key
love.key_equals[integer]= key
love.key_greater[integer]> key
love.key_question[integer]? key
love.key_at[integer]@ key
love.key_leftbracket[integer][ key
love.key_backslash[integer]\ key
love.key_rightbracket[integer]] key
love.key_caret[integer]^ key
love.key_underscore[integer]_ key
love.key_backquote[integer] key
love.key_a[integer]A key
love.key_b[integer]B key
love.key_c[integer]C key
love.key_d[integer]D key
love.key_e[integer]E key
love.key_f[integer]F key
love.key_g[integer]G key
love.key_h[integer]H key
love.key_i[integer]I key
love.key_j[integer]J key
love.key_k[integer]K key
love.key_l[integer]L key
love.key_m[integer]M key
love.key_n[integer]N key
love.key_o[integer]O key
love.key_p[integer]P key
love.key_q[integer]Q key
love.key_r[integer]R key
love.key_s[integer]S key
love.key_t[integer]T key
love.key_u[integer]U key
love.key_v[integer]V key
love.key_w[integer]W key
love.key_x[integer]X key
love.key_y[integer]Y key
love.key_z[integer]Z key
love.key_delete[integer]Delete key
love.key_kp0[integer]Keypad 0
love.key_kp1[integer]Keypad 1
love.key_kp2[integer]Keypad 2
love.key_kp3[integer]Keypad 3
love.key_kp4[integer]Keypad 4
love.key_kp5[integer]Keypad 5
love.key_kp6[integer]Keypad 6
love.key_kp7[integer]Keypad 7
love.key_kp8[integer]Keypad 8
love.key_kp9[integer]Keypad 9
love.key_kp_period[integer]Keypad .
love.key_kp_divide[integer]Keypad /
love.key_kp_multiply[integer]Keypad *
love.key_kp_minus[integer]Keypad -
love.key_kp_plus[integer]Keypad +
love.key_kp_enter[integer]Keypad enter
love.key_kp_equals[integer]Keypad =
love.key_up[integer]Up key
love.key_down[integer]Down key
love.key_right[integer]Right key
love.key_left[integer]Left key
love.key_insert[integer]Insert key
love.key_home[integer]Home key
love.key_end[integer]End key
love.key_pageup[integer]Page Up key
love.key_pagedown[integer]Page Down key
love.key_f1[integer]F1 key
love.key_f2[integer]F2 key
love.key_f3[integer]F3 key
love.key_f4[integer]F4 key
love.key_f5[integer]F5 key
love.key_f6[integer]F6 key
love.key_f7[integer]F7 key
love.key_f8[integer]F8 key
love.key_f9[integer]F9 key
love.key_f10[integer]F10 key
love.key_f11[integer]F11 key
love.key_f12[integer]F12 key
love.key_f13[integer]F13 key
love.key_f14[integer]F14 key
love.key_f15[integer]F15 key
love.key_numlock[integer]Num lock key
love.key_capslock[integer]Caps lock key
love.key_scrollock[integer]Scroll lock key
love.key_rshift[integer]Right shift key
love.key_lshift[integer]Left shift key
love.key_rctrl[integer]Right control key
love.key_lctrl[integer]Left control key
love.key_ralt[integer]Right alt key
love.key_lalt[integer]Left alt key
love.key_rmeta[integer]Right meta key
love.key_lmeta[integer]Left meta key
love.key_rsuper[integer]Right super key
love.key_lsuper[integer]Left super key
love.key_mode[integer]Mode key
love.key_compose[integer]Compose key
love.key_help[integer]Help key
love.key_print[integer]Print key
love.key_sysreq[integer]System request key
love.key_break[integer]Break key
love.key_menu[integer]Menu key
love.key_power[integer]Power key
love.key_euro[integer]€ key
love.key_undo[integer]Undo key
love.mouse_left[integer]The left mouse button.
love.mouse_middle[integer]The middle mouse button.
love.mouse_right[integer]The right mouse button.
love.mouse_wheelup[integer]Mouse wheel scrolled upwards.
love.mouse_wheeldown[integer]Mouse wheel scrolled downwards.
love.align_left[integer]Align to the left side.
love.align_center[integer]Align in the center (vertically or horizontally).
love.align_right[integer]Align to the right side.
love.align_top[integer]Align to the top.
love.align_bottom[integer]Align to the bottom.
love.mode_loop[integer]Loops continuesly.
love.mode_once[integer]Plays once.
love.mode_bounce[integer]Bounces back and forth.
love.event_message[integer]A message event.
love.event_gui[integer]A GUI event.
love.blend_normal[integer]Normal blendig mode.
love.blend_additive[integer]Additive blending mode.
love.color_normal[integer]Normal color mode.
love.color_modulate[integer]Modulation color mode.
love.file_read[integer]For file reading.
love.file_write[integer]For file writing.
love.file_append[integer]For file appending.
love.default_font[integer]The default font (Vera).
love.draw_line[integer]Draws the primitive using lines.
love.draw_fill[integer]Draws a filled primitive.
love.line_smooth[integer]Sets the lines as smooth.
love.line_rough[integer]Sets the lines as rough (best when drawing straight 1px wide lines).
love.audio_loop[integer]Loops music or sound.