Converts our own `RGB` type to an SDL `Color`.
(rgb: RGB)
| 146 | |
| 147 | /// Converts our own `RGB` type to an SDL `Color`. |
| 148 | fn rgb_to_color(rgb: RGB) -> Color { |
| 149 | Color::RGB(rgb.0, rgb.1, rgb.2) |
| 150 | } |
| 151 | |
| 152 | /// Given an SDL `event`, converts it to a `Key` event if it is a key press; otherwise, returns |
| 153 | /// `None` for unknown events. |
no outgoing calls
no test coverage detected