- Input::Keyboard *keyboard = 0;
- InputMethod *input_method = 0;
- Input::Mouse *mouse = 0;
- Input::Touchscreen *touchscreen = 0;
- bool own_input = false;
- Label *lbl_tooltip = 0;
+ Input::Keyboard *keyboard = nullptr;
+ std::unique_ptr<InputMethod> input_method;
+ Input::Mouse *mouse = nullptr;
+ Input::Touchscreen *touchscreen = nullptr;
+ std::unique_ptr<Input::Device> own_input[2];
+ Label *lbl_tooltip = nullptr;