嘿那里,我想知道是否有可能在OpenGL渲染的应用程序(游戏)中使用Android SoftKeyboard?
我问这个,因为我希望有一个带有自我渲染文本输入字段的ingame gui和支持软键盘的ofc.这是可能的还是我必须自己渲染键盘?(这会很麻烦...)
有什么建议?
提前致谢!
制造进出口
前几天我碰到了一些关于C#属性的问题.
假设我有这个设置:
public class Point
{
public float X;
public float Y;
}
public class Control
{
protected Point m_Position = new Point();
public Point Position
{
get { return m_Position; }
set
{
m_Position = value; }
// reorganize internal structure..
reorganize();
}
protected reorganize()
{
// do some stuff
}
}
Run Code Online (Sandbox Code Playgroud)
这一切都很好,但在使用方面,我可以这样写:
Control myControl = new Control();
myControl.Position.X = 1.0f;
Run Code Online (Sandbox Code Playgroud)
问题是,我的Control班级不会认识到Position因为set()没有被调用而已经改变了.
有没有办法让人Control知道任何Position变化?