Welcome,
Guest
. Please
login
or
register
.
February 12, 2025, 06:32:54 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Extending UICamera to add a new type of Event Source
« previous
next »
Print
Pages: [
1
]
Author
Topic: Extending UICamera to add a new type of Event Source (Read 2284 times)
KeithT
Jr. Member
Thank You
-Given: 0
-Receive: 0
Posts: 55
Extending UICamera to add a new type of Event Source
«
on:
January 09, 2015, 12:43:29 PM »
We need to add support for a zSpace stylus as an NGUI Event Source, so an existing menu system built in NGUI can work with it.
Does anyone know if any one has done this before for other custom controller types?
Any pointers ?
Thanks in advance.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Extending UICamera to add a new type of Event Source
«
Reply #1 on:
January 10, 2015, 12:43:26 PM »
You will need to use UICamera.onCustomInput.
Logged
KeithT
Jr. Member
Thank You
-Given: 0
-Receive: 0
Posts: 55
Re: Extending UICamera to add a new type of Event Source
«
Reply #2 on:
January 15, 2015, 06:39:16 AM »
Thanks, we have this partially working using onCustomInput but.....
We use the event system in UICamera to drive a lot of UI not just NGUI menus. As far as we can see UICamera is only designed to work with input devices with 2 degrees of freedom e.g. a mouse, touch, controller. A zSpace stylus has 6 degrees of freedom (and some new VR controllers I think have more
http://www.tasharen.com/forum/index.php?topic=12284.0
- 2 hands) so we don't see a clean way of integrating this into UICamera without really rewriting quite a bit of it's internals.
Any suggestions?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Extending UICamera to add a new type of Event Source
«
Reply #3 on:
January 15, 2015, 08:43:16 PM »
You will need to find a way to convert it to 2D. NGUI menus are all 2D, even when displayed in a 3D world.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Extending UICamera to add a new type of Event Source