|
代码里面转两次
function rotation_local()
{
var action_rotation=BRAC_ROTATION_FLAGS_ROTATION90;
//BRAC_SetSDKOption(98,0);
switch(rotationLocal)
{
case 0:
rotationLocal=90;
action_rotation=BRAC_ROTATION_FLAGS_ROTATION90;
break;
case 90:
rotationLocal=180;
action_rotation=BRAC_ROTATION_FLAGS_ROTATION180;
break;
case 180:
rotationLocal=270;
action_rotation=BRAC_ROTATION_FLAGS_ROTATION270;
break;
case 270:
rotationLocal=0;
action_rotation=0;
break;
}
BRAC_UserInfoControl(-1, BRAC_USERINFO_CTRLCODE_ROTATION, action_rotation, 0, "");
alert("旋转成功");
}
var rotationLocal=0; |
|