Main > Audio/Jukebox/MP3 Forum
Starting coding on Touchscreen jukebox. *release date?? & Art!!*
<< < (6/30) > >>
Chris:

--- Quote from: nipsmg on August 03, 2005, 07:39:33 am ---I'm sure there are more complex issues I'll be looking at , but the major difference between a touchscreen/computer application is: No mouse pointer.
--- End quote ---
nipsmg:
True, I didn't think about that..
That's depending on the control though, of course.

I don't want a virtual keyboard to repeat the key when it's held down, yet I want a button used to scroll to repeat, or anything you hold down and drag (i.e. scrollbar indicator).


That's easily taken care of by continually checking the buttonstate in the main program loop, and making sure that all interface object implement a base interface like "IScreenControl" that has some kind of property "repeatable".

Actually, you'd need 3 types to cover what I was talking about.
1: Touching the control causes a single button press (Down/Up).  To repeat you have to   
      touch it again.
2: Touching the control causes repeated button presses (down/up/down/up) until
     released.  This allows for scrolling a scrollbar using the arrows.
3: Touching the control causes it to remain in a DOWN state, and allows dragging/etx (for   
     dragging the scrollbar indicator up/down (or left/right, depending on orientation).


I haven't quite gotten that far yet.  I plan on doing the interface/class designs for the new jukebox implementation sometime this week.

Anything else I should think about Chris?


Chris:

--- Quote from: nipsmg on August 03, 2005, 10:23:20 am ---Anything else I should think about Chris?

--- End quote ---
No, that was the biggest issue I ran into other than reading the touchscreen position itself.  The DirectInput mouse and the GDI mouse may behave differently; a touchscreen doesn't return mickeys.  This is why my touchscreen code works on XP but not 2000; I had made the assumption that it would read like any other mouse which wasn't true.

For my repeats, I just make all buttons repeat.  Like the PC keyboard, it takes a little longer for the button to start repeating than to keep repeating, and I use the same repeat mechanism for input from the touchscreen, keyboard, or gamepads so everything is consistent.  If a user doesn't want a button to repeat, he can choose not to hold it down.  :)  I don't have any "drag" controls in my jukebox by design; in my mind, anything you can drag feels too much like a computer and not enough like a jukebox (but again, I'm going for "mechanical jukebox", not "computerized jukebox").

--Chris
 

--Chris
nipsmg:
Gotcha.

I'm emulating the "touchtunes" type of jukebox, which actually has a scrollbar from A to Z.  You can click, or you can hold and drag the letter indicator up and down, which is nice.

(you can also click in the scroll area and jump to that spot, which I plan to implement).

This is a bit more difficult than I had thought, and I've never written my own non windows-based controls before, so writing the event subsystem should be fun  :-\  It's a learning experience, and a chance to learn a new language.

I write vb.net professionally for corporate apps, but know very little C#.  I'm writing this entirely in C# (they're so close, there's no reason to not be able to do it).

Here goes nothing.
nipsmg:
Well, I've come up with a possible name, and created a logo/title for it.

This image should give an impression of the visual style I'm going for with most of the controls in the original skin.  They may be a bit more "cartoony" and less glassy in the final product, but it's a hint at what I'm looking to do.

Introducing... PowerPlay Media Jukebox




If anyone has any comments/suggestions/criticisms, please feel free to unleash them on me. Thanks.
Navigation
Message Index
Next page
Previous page

Go to full version