note description: "[ A GAME_HAPTIC_EFFECT that can use a left and right motor. May be use also for Low and High frequency motors. ]" author: "Louis Marchand" date: "Tue, 03 Mar 2015 21:22:50 +0000" revision: "2.0" class interface GAME_HAPTIC_LEFT_RIGHT_EFFECT create make feature -- Initialization make -- Initialization of Current feature -- Access length: NATURAL_32 assign set_length -- Duration of Current (in millisecond) set_length (a_length: NATURAL_32) -- Assign length with the value of a_length left_level: NATURAL_16 assign set_left_level -- Strength of the left motor of Current require exists: exists set_left_level (a_level: NATURAL_16) -- Assign start_level with the value of a_level require exists: exists level_valid: a_level <= 32767 ensure is_assign: left_level = a_level right_level: NATURAL_16 assign set_right_level -- Strength of the right motor of Current require exists: exists set_right_level (a_level: NATURAL_16) -- Assign right_level with the value of a_level require exists: exists level_valid: a_level <= 32767 ensure is_assign: right_level = a_level end -- class GAME_HAPTIC_LEFT_RIGHT_EFFECT
Generated by ISE EiffelStudio