Liking cljdoc? Tell your friends :D

clunk.input


add-on-clickclj

(add-on-click sprite f)

Make a sprite :clickable? by adding an :on-click-fn to be invoked by the default mouse-pressed handler.

An :on-click-fn takes the game state and the clicked sprite and should return the new game state.

Make a sprite `:clickable?` by adding an `:on-click-fn` to be invoked
by the default mouse-pressed handler.

An `:on-click-fn` takes the game state and the clicked sprite and
should return the new game state.
sourceraw docstring

default-event-fnsclj

source

default-key-pressedclj

(default-key-pressed state e)

Add the pressed key to the set of currently held keys.

Add the pressed key to the set of currently held keys.
sourceraw docstring

default-key-releasedclj

(default-key-released state e)

Remove the released key from the set of currently held keys.

Remove the released key from the set of currently held keys.
sourceraw docstring

default-mouse-pressedclj

(default-mouse-pressed {:keys [scenes current-scene] :as state} e)

Check all :clickable? sprites for collision with the mouse event, apply the :on-click-fn of all that have been clicked on.

Check all `:clickable?` sprites for collision with the mouse event,
apply the `:on-click-fn` of all that have been clicked on.
sourceraw docstring

G_AXIS_LASTclj

source

G_AXIS_LEFT_TRIGGERclj

source

G_AXIS_LEFT_Xclj

source

G_AXIS_LEFT_Yclj

source

G_AXIS_RIGHT_TRIGGERclj

source

G_AXIS_RIGHT_Xclj

source

G_AXIS_RIGHT_Yclj

source

G_BUTTON_Aclj

source

G_BUTTON_Bclj

source

G_BUTTON_BACKclj

source

G_BUTTON_CIRCLEclj

source

G_BUTTON_CROSSclj

source

G_BUTTON_DPAD_DOWNclj

source

G_BUTTON_DPAD_LEFTclj

source

G_BUTTON_DPAD_RIGHTclj

source

G_BUTTON_DPAD_UPclj

source

G_BUTTON_GUIDEclj

source

G_BUTTON_LASTclj

source

G_BUTTON_LEFT_BUMPERclj

source

G_BUTTON_LEFT_THUMBclj

source

G_BUTTON_RIGHT_BUMPERclj

source

G_BUTTON_RIGHT_THUMBclj

source

G_BUTTON_SQUAREclj

source

G_BUTTON_STARTclj

source

G_BUTTON_TRIANGLEclj

source

G_BUTTON_Xclj

source

G_BUTTON_Yclj

source

isclj

(is event code)
(is event code action)
source

K_0clj

source

K_1clj

source

K_2clj

source

K_3clj

source

K_4clj

source

K_5clj

source

K_6clj

source

K_7clj

source

K_8clj

source

K_9clj

source

K_Aclj

source

K_APOSTROPHEclj

source

K_Bclj

source

K_BACKSLASHclj

source

K_BACKSPACEclj

source

K_Cclj

source

K_CAPS_LOCKclj

source

K_COMMAclj

source

K_Dclj

source

K_DELETEclj

source

K_DOWNclj

source

K_Eclj

source

K_ENDclj

source

K_ENTERclj

source

K_EQUALclj

source

K_ESCAPEclj

source

K_Fclj

source

K_F1clj

source

K_F10clj

source

K_F11clj

source

K_F12clj

source

K_F13clj

source

K_F14clj

source

K_F15clj

source

K_F16clj

source

K_F17clj

source

K_F18clj

source

K_F19clj

source

K_F2clj

source

K_F20clj

source

K_F21clj

source

K_F22clj

source

K_F23clj

source

K_F24clj

source

K_F25clj

source

K_F3clj

source

K_F4clj

source

K_F5clj

source

K_F6clj

source

K_F7clj

source

K_F8clj

source

K_F9clj

source

K_Gclj

source

K_GRAVE_ACCENTclj

source

K_Hclj

source

K_HOMEclj

source

K_Iclj

source

K_INSERTclj

source

K_Jclj

source

K_Kclj

source

K_KP_0clj

source

K_KP_1clj

source

K_KP_2clj

source

K_KP_3clj

source

K_KP_4clj

source

K_KP_5clj

source

K_KP_6clj

source

K_KP_7clj

source

K_KP_8clj

source

K_KP_9clj

source

K_KP_ADDclj

source

K_KP_DECIMALclj

source

K_KP_DIVIDEclj

source

K_KP_ENTERclj

source

K_KP_EQUALclj

source

K_KP_MULTIPLYclj

source

K_KP_SUBTRACTclj

source

K_Lclj

source

K_LASTclj

source

K_LEFTclj

source

K_LEFT_ALTclj

source

K_LEFT_BRACKETclj

source

K_LEFT_CONTROLclj

source

K_LEFT_SHIFTclj

source

K_LEFT_SUPERclj

source

K_Mclj

source

K_MENUclj

source

K_MINUSclj

source

K_Nclj

source

K_NUM_LOCKclj

source

K_Oclj

source

K_Pclj

source

K_PAGE_DOWNclj

source

K_PAGE_UPclj

source

K_PAUSEclj

source

K_PERIODclj

source

K_PRINT_SCREENclj

source

K_Qclj

source

K_Rclj

source

K_RIGHTclj

source

K_RIGHT_ALTclj

source

K_RIGHT_BRACKETclj

source

K_RIGHT_CONTROLclj

source

K_RIGHT_SHIFTclj

source

K_RIGHT_SUPERclj

source

K_Sclj

source

K_SCROLL_LOCKclj

source

K_SEMICOLONclj

source

K_SLASHclj

source

K_SPACEclj

source

K_Tclj

source

K_TABclj

source

K_Uclj

source

K_UNKNOWNclj

source

K_UPclj

source

K_Vclj

source

K_Wclj

source

K_WORLD_1clj

source

K_WORLD_2clj

source

K_Xclj

source

K_Yclj

source

K_Zclj

source

M_1clj

source

M_2clj

source

M_3clj

source

M_4clj

source

M_5clj

source

M_6clj

source

M_7clj

source

M_8clj

source

M_LASTclj

source

M_LEFTclj

source

M_MIDDLEclj

source

M_RIGHTclj

source

PRESSclj

source

RELEASEclj

source

REPEATclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close