What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-07 17:01:14
Disable key Unity
// At the top of your script using System.Collections.Generic; // In your class private Dictionary<KeyCode, bool> keys = new Dictionary<KeyCode, bool>(); private bool GetKeyDown( Keycode keyCode ) { if( !keys.ContainsKey( keyCode ) ... Add solution -
Javascript 2021-10-06 20:47:03
activate an event on press escape button in jquery
// You can use $.Event() to create an Event object containing a keydown event with the keyCode of 27 (which should be Esc) like: var esc = $.Event("keydown", { keyCode: 27 }); $("body").trigger(esc); // change body to the element wher... Add solution