Active Topics

 


Reply
Thread Tools
Posts: 279 | Thanked: 34 times | Joined on Jan 2010 @ Belgrade, Serbia
#1
Is there some app that would make this possible? I remember on my N95 8GB, there was an app called NiiMe, with which i could play games just by moving the phone. I remember playing Need For Speed Underground 2 with my phone as a wheel. It was a damn fun. And it would be really nice if someone makes an app for N900. I have used BlueMaemo ps3 controller to play some games. It was fun, but also a little bit difficult cuz N900 doesn't have multitouch.
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#2
bluemaemo has already an acc-mode... in mouse and gamepad there is on the leftside a "2" button... if activated it uses the acc... (but i think it's only for mouse-control and only one speed till now)
 
Posts: 279 | Thanked: 34 times | Joined on Jan 2010 @ Belgrade, Serbia
#3
Just tried it. Works great, but i wish it has acc controls like Bounce evolution has. like when you want to jump, tilt your phone upwards, if you want to go forward, tilt the phone forward. Do you know if it'll be possible?
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#4
of course would this be possible.
now the tilt is telling the mouse to move up/down/right/left.
as you can see you have to remap those commands to cursor up/down/right/left.
(or to the wasd-keys ^^)

edit: with the "1" button the left/right cursor is already mapped.
up/down doesn't seem to work o.O

Last edited by b666m; 2010-01-24 at 21:54.
 
Posts: 279 | Thanked: 34 times | Joined on Jan 2010 @ Belgrade, Serbia
#5
Yeah, noticed that too. I tried to play GTA IV by using bluemaemo gamepad and turning on "2" as you told me. But was only able to shift the camera from left to right and right to left.
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#6
Originally Posted by white_ranger View Post
Yeah, noticed that too. I tried to play GTA IV by using bluemaemo gamepad and turning on "2" as you told me. But was only able to shift the camera from left to right and right to left.
Code:
if abs(roll) > abs(pitch):
                if roll > self.l_left:

                    	key = self.main.left_key
			modif, val = key_dec(self,key)
			if self.profile.key_pressed:
				self.main.connection.send_multiple_keyboard_event(modif,val,self.profile.current_key)
			else:

				self.main.connection.send_keyboard_event(modif,val)
			self.send_event = True

                if roll < -self.l_right:
                   	key = self.main.right_key
			modif, val = key_dec(self,key)

			if self.profile.key_pressed:
				self.main.connection.send_multiple_keyboard_event(modif,val,self.profile.current_key)
			else:

				self.main.connection.send_keyboard_event(modif,val)

			self.send_event = True
            else:
                if pitch > self.l_up:
                   pass
                if pitch < -self.l_down:
		   pass
right at the bottom (the block with self.l_up and self.l_down) "pass" seems to be a "just do nothing".
so if you change that first "pass" to:

Code:
                        key = self.main.up_key
			modif, val = key_dec(self,key)
			if self.profile.key_pressed:
				self.main.connection.send_multiple_keyboard_event(modif,val,self.profile.current_key)
			else:

				self.main.connection.send_keyboard_event(modif,val)
			self.send_event = True
and the second with up_key this should also do up/down?!

ehm... that's the theory... and only the source-code xD
now we have to compile and test this one

EDIT: i think the problem with this one is, that you only can send one command per time.

so if you have following config:
up -> accelerate
down -> break
left and right -> steer

you can't accelrate/break and steer.

you could write some code which alternately sends up/down and left/right
(if more than one command would be received because you lean your phone forward-right or so)

this leads me to the question, how many commands per second are sent. if only a few commands will be send this idea isn't great. imagine it would be only one command per second. so you could only accelerate without steering one second and only steer without accelerate the other second. xD

the more commands per second the smoother this one would be.
i could check this out by using the airmouse which moves 2px per command. then i could move it for about 5 seconds, count the pixels it moved along and divide it by 10. ^^ (or 10 seconds and divide by 20)

mhm... but there is surely a command which sends multiple keys at time.
(so forget the last few lines above *G*)

Last edited by b666m; 2010-01-24 at 22:33.
 

The Following User Says Thank You to b666m For This Useful Post:
Posts: 279 | Thanked: 34 times | Joined on Jan 2010 @ Belgrade, Serbia
#7
Thanks. Are you a BlueMaemo developer?
 
b666m's Avatar
Posts: 1,090 | Thanked: 476 times | Joined on Jan 2010 @ Ingolstadt, Germany
#8
Originally Posted by white_ranger View Post
Thanks. Are you a BlueMaemo developer?
no. just a student who loves to take a look at codes of programs.

VDVsx is the developer of bluemaemo -> http://forums.internettablettalk.com...ad.php?t=24396
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:19.