mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-20 01:38:12 +00:00
(PS3) Implemented rotation callback function
This commit is contained in:
parent
ed75cb8031
commit
239e491382
@ -39,6 +39,7 @@
|
||||
#define video_focus_func() gl_focus(driver.video_data)
|
||||
#define video_xml_shader_func(path) driver.video->xml_shader(driver.video_data, path)
|
||||
#define video_free_func() gl_free(driver.video_data)
|
||||
#define video_set_rotation_func(orientation) ps3graphics_set_orientation(driver.video_data, orientation)
|
||||
|
||||
#define input_init_func() ps3_input_initialize()
|
||||
#define input_poll_func() ps3_input_poll(driver.input_data)
|
||||
|
@ -2176,7 +2176,7 @@ static void ingame_menu(uint32_t menu_id)
|
||||
if(g_console.screen_orientation > ORIENTATION_NORMAL)
|
||||
{
|
||||
g_console.screen_orientation--;
|
||||
ps3graphics_set_orientation(g_console.screen_orientation);
|
||||
video_gl.set_rotation(NULL, g_console.screen_orientation);
|
||||
set_delay = DELAY_LONG;
|
||||
}
|
||||
}
|
||||
@ -2186,7 +2186,7 @@ static void ingame_menu(uint32_t menu_id)
|
||||
if((g_console.screen_orientation+1) < ORIENTATION_END)
|
||||
{
|
||||
g_console.screen_orientation++;
|
||||
ps3graphics_set_orientation(g_console.screen_orientation);
|
||||
video_gl.set_rotation(NULL, g_console.screen_orientation);
|
||||
set_delay = DELAY_LONG;
|
||||
}
|
||||
}
|
||||
@ -2194,7 +2194,7 @@ static void ingame_menu(uint32_t menu_id)
|
||||
if(CTRL_START(state))
|
||||
{
|
||||
g_console.screen_orientation = ORIENTATION_NORMAL;
|
||||
ps3graphics_set_orientation(g_console.screen_orientation);
|
||||
video_gl.set_rotation(NULL, g_console.screen_orientation);
|
||||
}
|
||||
strcpy(comment, "Press LEFT or RIGHT to change the [Orientation] settings.\nPress START to reset back to default values.");
|
||||
break;
|
||||
|
@ -1696,8 +1696,9 @@ void gl_frame_menu (void)
|
||||
glBindTexture(GL_TEXTURE_2D, gl->texture[gl->tex_index]);
|
||||
}
|
||||
|
||||
void ps3graphics_set_orientation(uint32_t orientation)
|
||||
static void ps3graphics_set_orientation(void * data, uint32_t orientation)
|
||||
{
|
||||
(void)data;
|
||||
switch (orientation)
|
||||
{
|
||||
case ORIENTATION_NORMAL:
|
||||
|
@ -135,7 +135,6 @@ void ps3_video_deinit(void);
|
||||
void ps3graphics_reinit_fbos (void);
|
||||
void ps3graphics_set_aspect_ratio(uint32_t aspectratio_index);
|
||||
void ps3graphics_set_overscan(bool overscan_enable, float amount, bool recalculate_viewport);
|
||||
void ps3graphics_set_orientation(uint32_t orientation);
|
||||
void ps3graphics_set_vsync(uint32_t vsync);
|
||||
void ps3graphics_video_init(bool get_all_resolutions);
|
||||
void ps3graphics_video_reinit(void);
|
||||
|
Loading…
Reference in New Issue
Block a user