Style: Apply new clang-format 5.0 style to all files
This commit is contained in:
parent
a8ceb7e3f2
commit
13c2ff9320
199 changed files with 954 additions and 875 deletions
|
|
@ -262,7 +262,7 @@ int dom2godot_scancode(int dom_keycode) {
|
|||
case DOM_VK_CAPS_LOCK:
|
||||
return KEY_CAPSLOCK;
|
||||
|
||||
/*
|
||||
/*
|
||||
case DOM_VK_KANA: return KEY_UNKNOWN;
|
||||
case DOM_VK_HANGUL: return KEY_UNKNOWN;
|
||||
case DOM_VK_EISU: return KEY_UNKNOWN;
|
||||
|
|
@ -274,7 +274,7 @@ int dom2godot_scancode(int dom_keycode) {
|
|||
|
||||
case DOM_VK_ESCAPE:
|
||||
return KEY_ESCAPE;
|
||||
/*
|
||||
/*
|
||||
case DOM_VK_CONVERT: return KEY_UNKNOWN;
|
||||
case DOM_VK_NONCONVERT: return KEY_UNKNOWN;
|
||||
case DOM_VK_ACCEPT: return KEY_UNKNOWN;
|
||||
|
|
@ -292,7 +292,7 @@ int dom2godot_scancode(int dom_keycode) {
|
|||
case DOM_VK_DOWN:
|
||||
return KEY_DOWN;
|
||||
|
||||
//case DOM_VK_SELECT: return KEY_UNKNOWN;
|
||||
//case DOM_VK_SELECT: return KEY_UNKNOWN;
|
||||
|
||||
case DOM_VK_PRINTSCREEN: // this is the usual printScreen key
|
||||
case DOM_VK_PRINT: // maybe for alt+printScreen or physical printers?
|
||||
|
|
@ -320,7 +320,7 @@ int dom2godot_scancode(int dom_keycode) {
|
|||
case DOM_VK_DIVIDE:
|
||||
return KEY_KP_DIVIDE;
|
||||
|
||||
/*
|
||||
/*
|
||||
case DOM_VK_F17: return KEY_UNKNOWN;
|
||||
case DOM_VK_F18: return KEY_UNKNOWN;
|
||||
case DOM_VK_F19: return KEY_UNKNOWN;
|
||||
|
|
@ -335,7 +335,7 @@ int dom2godot_scancode(int dom_keycode) {
|
|||
case DOM_VK_SCROLL_LOCK:
|
||||
return KEY_SCROLLLOCK;
|
||||
|
||||
/*
|
||||
/*
|
||||
case DOM_VK_WIN_OEM_FJ_JISHO: return KEY_UNKNOWN;
|
||||
case DOM_VK_WIN_OEM_FJ_MASSHOU: return KEY_UNKNOWN;
|
||||
case DOM_VK_WIN_OEM_FJ_TOUROKU: return KEY_UNKNOWN;
|
||||
|
|
@ -375,7 +375,7 @@ int dom2godot_scancode(int dom_keycode) {
|
|||
case DOM_VK_QUOTE:
|
||||
return KEY_APOSTROPHE;
|
||||
|
||||
// rest is OEM/unusual
|
||||
// rest is OEM/unusual
|
||||
|
||||
default: return KEY_UNKNOWN;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -63,8 +63,10 @@ int PowerJavascript::get_power_percent_left() {
|
|||
}
|
||||
}
|
||||
|
||||
PowerJavascript::PowerJavascript()
|
||||
: nsecs_left(-1), percent_left(-1), power_state(OS::POWERSTATE_UNKNOWN) {
|
||||
PowerJavascript::PowerJavascript() :
|
||||
nsecs_left(-1),
|
||||
percent_left(-1),
|
||||
power_state(OS::POWERSTATE_UNKNOWN) {
|
||||
}
|
||||
|
||||
PowerJavascript::~PowerJavascript() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue