note description: "[ Encapsulates the press of a mouse button ]" author: "Louis Marchand and obnosim" date: "Sun Feb 04, 2018" revision: "2.0" todo: "Drop GAME_MOUSE_BUTTON_RELEASED_STATE entirely and inherit GAME_MOUSE_BUTTON_EVENT directly" class GAME_MOUSE_BUTTON_PRESS_EVENT inherit GAME_MOUSE_BUTTON_EVENT create make feature -- Access is_left_button_pressed: BOOLEAN obsolete "Use `is_left_button' instead [2018-01-31]" -- Is the left button of the mouse represented -- by Current is the one that has been pressed do Result := is_left_button end is_right_button_pressed: BOOLEAN obsolete "Use `is_right_button' instead [2018-01-31]" -- Is the right button of the mouse represented -- by Current is the one that has been pressed do Result := is_right_button end is_middle_button_pressed: BOOLEAN obsolete "Use `is_middle_button' instead [2018-01-31]" -- Is the middle button of the mouse represented -- by Current is the one that has been pressed do Result := is_middle_button end is_optionnal_button_1_pressed: BOOLEAN obsolete "Use `is_optional_button_1' instead [2018-01-31]" -- Is the first optionnal button of the mouse represented -- by Current is the one that has been pressed do Result := is_optional_button_1 end is_optionnal_button_2_pressed: BOOLEAN obsolete "Use `is_optional_button_2' instead [2018-01-31]" -- Is the second optionnal button of the mouse represented -- by Current is the one that has been pressed do Result := is_optional_button_2 end end -- class GAME_MOUSE_BUTTON_PRESS_EVENT
Generated by ISE EiffelStudio