mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-08 08:45:43 +08:00
sources hash update and auto-formatting
This commit is contained in:
parent
197eca46ce
commit
67d65fa039
@ -1 +1 @@
|
|||||||
206834682288822241335693999070871022992
|
320686119307869972803010339077202626108
|
||||||
@ -673,7 +673,8 @@ void Joystick::HandleSDLEvent(const SDL_Event* e) {
|
|||||||
dpad_right_held_ = (e->type == SDL_JOYBUTTONDOWN);
|
dpad_right_held_ = (e->type == SDL_JOYBUTTONDOWN);
|
||||||
e2.jaxis.value = static_cast_check_fit<int16_t>(
|
e2.jaxis.value = static_cast_check_fit<int16_t>(
|
||||||
dpad_right_held_ ? (dpad_left_held_ ? 0 : 32767)
|
dpad_right_held_ ? (dpad_left_held_ ? 0 : 32767)
|
||||||
: dpad_left_held_ ? -32767 : 0);
|
: dpad_left_held_ ? -32767
|
||||||
|
: 0);
|
||||||
e = &e2;
|
e = &e2;
|
||||||
} else if (e->jbutton.button == left_button_
|
} else if (e->jbutton.button == left_button_
|
||||||
|| e->jbutton.button == left_button2_) {
|
|| e->jbutton.button == left_button2_) {
|
||||||
@ -682,7 +683,8 @@ void Joystick::HandleSDLEvent(const SDL_Event* e) {
|
|||||||
dpad_left_held_ = (e->type == SDL_JOYBUTTONDOWN);
|
dpad_left_held_ = (e->type == SDL_JOYBUTTONDOWN);
|
||||||
e2.jaxis.value = static_cast_check_fit<int16_t>(
|
e2.jaxis.value = static_cast_check_fit<int16_t>(
|
||||||
dpad_right_held_ ? (dpad_left_held_ ? 0 : 32767)
|
dpad_right_held_ ? (dpad_left_held_ ? 0 : 32767)
|
||||||
: dpad_left_held_ ? -32767 : 0);
|
: dpad_left_held_ ? -32767
|
||||||
|
: 0);
|
||||||
e = &e2;
|
e = &e2;
|
||||||
} else if (e->jbutton.button == up_button_
|
} else if (e->jbutton.button == up_button_
|
||||||
|| e->jbutton.button == up_button2_) {
|
|| e->jbutton.button == up_button2_) {
|
||||||
@ -691,7 +693,8 @@ void Joystick::HandleSDLEvent(const SDL_Event* e) {
|
|||||||
dpad_up_held_ = (e->type == SDL_JOYBUTTONDOWN);
|
dpad_up_held_ = (e->type == SDL_JOYBUTTONDOWN);
|
||||||
e2.jaxis.value = static_cast_check_fit<int16_t>(
|
e2.jaxis.value = static_cast_check_fit<int16_t>(
|
||||||
dpad_up_held_ ? (dpad_down_held_ ? 0 : -32767)
|
dpad_up_held_ ? (dpad_down_held_ ? 0 : -32767)
|
||||||
: dpad_down_held_ ? 32767 : 0);
|
: dpad_down_held_ ? 32767
|
||||||
|
: 0);
|
||||||
e = &e2;
|
e = &e2;
|
||||||
} else if (e->jbutton.button == down_button_
|
} else if (e->jbutton.button == down_button_
|
||||||
|| e->jbutton.button == down_button2_) {
|
|| e->jbutton.button == down_button2_) {
|
||||||
@ -700,7 +703,8 @@ void Joystick::HandleSDLEvent(const SDL_Event* e) {
|
|||||||
dpad_down_held_ = (e->type == SDL_JOYBUTTONDOWN);
|
dpad_down_held_ = (e->type == SDL_JOYBUTTONDOWN);
|
||||||
e2.jaxis.value = static_cast_check_fit<int16_t>(
|
e2.jaxis.value = static_cast_check_fit<int16_t>(
|
||||||
dpad_up_held_ ? (dpad_down_held_ ? 0 : -32767)
|
dpad_up_held_ ? (dpad_down_held_ ? 0 : -32767)
|
||||||
: dpad_down_held_ ? 32767 : 0);
|
: dpad_down_held_ ? 32767
|
||||||
|
: 0);
|
||||||
e = &e2;
|
e = &e2;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -379,8 +379,8 @@ void TextNode::Draw(FrameDef* frame_def) {
|
|||||||
|
|
||||||
// make sure we're up to date
|
// make sure we're up to date
|
||||||
Update();
|
Update();
|
||||||
RenderPass& pass(
|
RenderPass& pass(*(in_world_
|
||||||
*(in_world_ ? frame_def->overlay_3d_pass()
|
? frame_def->overlay_3d_pass()
|
||||||
: (vr_use_fixed ? frame_def->GetOverlayFixedPass()
|
: (vr_use_fixed ? frame_def->GetOverlayFixedPass()
|
||||||
: front_ ? frame_def->overlay_front_pass()
|
: front_ ? frame_def->overlay_front_pass()
|
||||||
: frame_def->overlay_pass())));
|
: frame_def->overlay_pass())));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user