MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / HandleSelect

Method HandleSelect

Source/Editors/sky_editor.cpp:245–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245bool SkyEditor::HandleSelect(float angle_from_sun) {
246 Mouse* mouse = &(Input::Instance()->getMouse());
247 if (mouse->mouse_double_click_[Mouse::LEFT]) {
248 if (angle_from_sun < PI / 50) {
249 m_sun_selected = true;
250 return true;
251 } else {
252 m_sun_selected = false;
253 return true;
254 }
255 }
256 return false;
257}
258
259extern bool shadow_cache_dirty;
260extern bool shadow_cache_dirty_sun_moved;

Callers 1

UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected