+ application.GetScene().Add(button1);
+ application.GetScene().Add(button2);
+
+ Actor actor = Actor::New();
+ actor.SetProperty(Actor::Property::KEYBOARD_FOCUSABLE, true);
+ application.GetScene().Add(actor);
+
+ PushButton buttonA = PushButton::New();
+ PushButton buttonB = PushButton::New();
+
+ buttonA.SetProperty(Actor::Property::SIZE, Vector2(50, 50));
+ buttonB.SetProperty(Actor::Property::SIZE, Vector2(50, 50));
+
+ buttonA.SetProperty(Actor::Property::KEYBOARD_FOCUSABLE, true);
+ buttonB.SetProperty(Actor::Property::KEYBOARD_FOCUSABLE, true);
+
+ actor.Add(buttonA);
+ actor.Add(buttonB);
+
+ // set position
+ // button1 -- button2
+ button1.SetProperty(Actor::Property::POSITION, Vector2(0.0f, 0.0f));
+ button2.SetProperty(Actor::Property::POSITION, Vector2(100.0f, 0.0f));
+ button1.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ button2.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+
+ // buttonA -- buttonB
+ buttonA.SetProperty(Actor::Property::POSITION, Vector2(0.0f, 50.0f));
+ buttonB.SetProperty(Actor::Property::POSITION, Vector2(100.0f, 50.0f));
+ buttonA.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ buttonB.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);