Hey i need a little advice
window.addEventListener( 'keyup', function ( event ) {
if ( document.activeElement && document.activeElement.tagName === 'INPUT' ) {
return;
}
switch ( String.fromCharCode( event.keyCode ) ) {
case 'E':
window.aimbotEnabled = ! window.aimbotEnabled;
break
}
I want to replace the Key "E" with "rightmouseclick" but idk how the case is so i hope you can help me :). So it should trigger when i press my right mouse button instead the key "E"