{"json_modified": "2016-03-28T08:34:12.777084", "uuid": "28b1e63d-c2fe-4b72-ac37-36af38dd311d", "title": "Keep it level: responding to device orientation changes", "url": "/en-US/docs/Web/Apps/Fundamentals/gather_and_modify_data/responding_to_device_orientation_changes", "tags": ["deviceorientation", "Device Orientation", "devicemotion", "Apps", "Firefox OS"], "translations": [], "modified": "2016-02-29T03:32:38", "label": "Keep it level: responding to device orientation changes", "localization_tags": [], "locale": "en-US", "id": 90323, "last_edit": "2016-02-29T03:32:09", "summary": "Game development is doubtless the most interesting area in which motion and orientation data are useful: for example you might think of using this data to control the direction of characters, vehicles or balls, and make them jump.", "sections": [{"id": "Situations_in_which_orientation_data_is_useful", "title": "Situations in which orientation data is useful"}, {"id": "Sensors_involved_in_retrieving_orientation_data", "title": "Sensors involved in retrieving orientation data"}, {"id": "Accelerometer", "title": "Accelerometer"}, {"id": "Gyroscope", "title": "Gyroscope"}, {"id": "Compass", "title": "Compass"}, {"id": "Why_3_sensors", "title": "Why 3 sensors?"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Device_Orientation_API", "title": "Device Orientation API"}, {"id": "The_deviceorientation_event", "title": "The deviceorientation event"}, {"id": "The_devicemotion_event", "title": "The devicemotion event"}, {"id": "The_compassneedscalibration_Event", "title": "The compassneedscalibration Event"}, {"id": "Screen_Orientation_API", "title": "Screen Orientation API"}, {"id": "Reading_the_orientation_state", "title": "Reading the orientation state"}, {"id": "Being_informed_when_the_orientation_state_changes", "title": "Being informed when the orientation state changes"}, {"id": "Locking_the_screen_orientation", "title": "Locking the screen orientation"}, {"id": "Demo_Rolling_Ball", "title": "Demo: Rolling Ball"}, {"id": "Let's_start!", "title": "Let's start!"}, {"id": "The_playground", "title": "The playground"}, {"id": "Locking_orientation", "title": "Locking orientation"}, {"id": "Locking_orientation_via_Screen_Orientation_API", "title": "Locking orientation via Screen Orientation API"}, {"id": "Locking_orientation_via_App_Manifest", "title": "Locking orientation via App Manifest"}, {"id": "Managing_screen_orientation", "title": "Managing screen orientation"}, {"id": "Making_the_ball_roll_and_jump", "title": "Making the ball roll and jump"}, {"id": "Keyboard_Control", "title": "Keyboard Control"}, {"id": "Device_Motion_Control", "title": "Device Motion Control"}, {"id": "Managing_collisions", "title": "Managing collisions"}, {"id": "Falling_into_the_hole", "title": "Falling into the hole"}], "slug": "Web/Apps/Fundamentals/gather_and_modify_data/responding_to_device_orientation_changes", "review_tags": []}