mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Remove some format rule (#10919)
* remove some rules * format all codes with new format rule
This commit is contained in:
@@ -159,12 +159,12 @@
|
||||
|
||||
namespace {
|
||||
// Modifier Key State
|
||||
bool stateShiftLeft = false;
|
||||
bool stateShiftRight = false;
|
||||
bool stateControlLeft = false;
|
||||
bool stateShiftLeft = false;
|
||||
bool stateShiftRight = false;
|
||||
bool stateControlLeft = false;
|
||||
bool stateControlRight = false;
|
||||
bool stateOptionLeft = false;
|
||||
bool stateOptionRight = false;
|
||||
bool stateOptionLeft = false;
|
||||
bool stateOptionRight = false;
|
||||
|
||||
// Refer to https://github.com/glfw/glfw/blob/master/src/cocoa_window.m.
|
||||
int keyCodes[0xff + 1] = {-1};
|
||||
@@ -352,7 +352,7 @@ int translateKeycode(int keyCode) {
|
||||
if (keyCode < 0 || keyCode > 0xff)
|
||||
return -1;
|
||||
|
||||
int key = keyCodes[keyCode];
|
||||
int key = keyCodes[keyCode];
|
||||
int keyInWeb = -1;
|
||||
if (key >= GLFW_KEY_0 && key <= GLFW_KEY_9)
|
||||
keyInWeb = key;
|
||||
|
||||
Reference in New Issue
Block a user