SetOnKeyUpEventHandler

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets/removes the specified UDF Script as a handler that will be invoked in the event the specified KeyID is released.

When invoked, the script is passed with a single argument: the released Key ID.

Syntax

[help]
SetOnKeyUpEventHandler handlerScript:ref setORremove:1/0 keyID:int

Example

SetOnKeyUpEventHandler OnKeyUpUDF 1 14

Sets the OnKeyUpUDF script as a handler to be invoked whenever Backspace is released.

SetOnKeyUpEventHandler OnKeyUpUDF 0 14

Removes the OnKeyUpUDF script as a handler of the above.

Handler Script

A skeleton handler script for this event:

scn	OnKeyUpUDF

int	iKeyID

begin Function {iKeyID}

(code)

end

See Also