| 93 | } |
| 94 | |
| 95 | int FloatButtonStateIndicator::GetPressedCount() { |
| 96 | int count = 0; |
| 97 | if (alt_item_->IsPressed()) { |
| 98 | count++; |
| 99 | } |
| 100 | if (shift_item_->IsPressed()) { |
| 101 | count++; |
| 102 | } |
| 103 | if (control_item_->IsPressed()) { |
| 104 | count++; |
| 105 | } |
| 106 | if (win_item_->IsPressed()) { |
| 107 | count++; |
| 108 | } |
| 109 | return count; |
| 110 | } |
| 111 | |
| 112 | } |