X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2FMain.qc;h=835d2855ed78a866c8e0e15a806b63b6ff6b9766;hp=c7a66a8680271478e17323116cc577a02fec1272;hb=fcbf9538330960b989dbe84e7188349d7e8b109f;hpb=77c8f18d6cf54ac0c0b1e426ac79842e7f593c80;ds=sidebyside diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index c7a66a8680..835d2855ed 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -383,9 +383,10 @@ float button_zoom; // CSQC_InputEvent : Used to perform actions based on any key pressed, key released and mouse on the client. // Return value should be 1 if CSQC handled the input, otherwise return 0 to have the input passed to the engine. // All keys are in ascii. -// bInputType = 0 is key pressed, 1 is key released, 2 is mouse input. +// bInputType = 0 is key pressed, 1 is key released, 2 and 3 are mouse input. // In the case of keyboard input, nPrimary is the ascii code, and nSecondary is 0. // In the case of mouse input, nPrimary is xdelta, nSecondary is ydelta. +// In the case of mouse input after a setcursormode(1) call, nPrimary is xpos, nSecondary is ypos. float CSQC_InputEvent(float bInputType, float nPrimary, float nSecondary) { float bSkipKey;