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

Method Update

Source/UserInput/mouse.cpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void Mouse::Update() {
50 wheel_delta_x_ = 0;
51 wheel_delta_y_ = 0;
52 for (int& i : delta_) {
53 i = 0;
54 }
55 for (int i = 0; i < NUM_BUTTONS; ++i) {
56 mouse_double_click_[i] = false;
57 if (mouse_down_[i] == CLICKED) {
58 mouse_down_[i] = HELD;
59 }
60 }
61}
62
63void Mouse::MouseWheelEvent(int x_amount, int y_amount) {
64 wheel_delta_x_ += x_amount;

Callers 1

ProcessControllerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected