1

I new to Moai development.I need to get user input by displaying edit box and combo control. However I could't find any sample how to get user input by standard control. I have seen MOAITextBox document but no clue how to use this control to get user input.

Thanks.

Earlz
  • 62,085
  • 98
  • 303
  • 499
santhosh
  • 375
  • 1
  • 8
  • 16

2 Answers2

2

This is answered quite well on their forum.

Basically, for a desktop application you can you Lua's IO library.

For a mobile device, you need to initiate the device's keyboard. It is explained fairly well on the forum. Hope this helps!

Peter Lang
  • 54,264
  • 27
  • 148
  • 161
0

To expand on the above answer a bit...

Moai is not really designed for this sort of thing. It's mostly about providing a fairly low-level framework for graphics/games that can be targeted to different devices. This works great if your game has a sui-generis interface with it's own buttons etc but works less well the minute you start wanting to use standard UI controls on whichever platform you happen to be running on.

One could build a UI-library on top of Moai and there are people doing that but but it's not something that's wrapped up in Moai itself.

gs hurley
  • 1,451
  • 2
  • 10
  • 4