{"name":"BIS_fnc_3den_onKeyDown","title":"BIS fnc 3den onKeyDown","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_3den_onKeyDown","revid":363331,"updated":"2024-03-27T09:38:04Z","groups":["KeyframeAnimation"],"status":"ok","games":{"arma3":"1.56"},"since":"arma3 1.56","arma3_since":"1.56","description":"Used internally by the Arma 3: Key Frame Animation system. Called when a button is pressed.","syntaxes":[{"syntax":"[display, button, shift, ctrl, alt] call BIS_fnc_3den_onKeyDown","params":[{"name":"display","type":"Display","description":"the display","type_expr":"Display"},{"name":"button","type":"Number","description":"key code of the pressed button","type_expr":"Number"},{"name":"shift","type":"Boolean","description":"<kbd>⇧ Shift</kbd> key","type_expr":"Boolean"},{"name":"ctrl","type":"Boolean","description":"<kbd>Ctrl</kbd> key","type_expr":"Boolean"},{"name":"alt","type":"Boolean","description":"<kbd>Alt</kbd> key","type_expr":"Boolean"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"whether or not to consume the input"}}],"examples":[{"code":["findDisplay 313 displayAddEventHandler [\"keyDown\", { _this call BIS_fnc_3den_onKeyDown }];"]}],"see_also":["Arma 3: Key Frame Animation"]}