Jump to content
The simFlight Network Forums

Button Repeat of Joystick on a Client


Recommended Posts

Hello,

*FSUIPC 3.30*

*WideFS 6.23*

I have a problem with the Joystick Buttons (again).

The Joystick is on a Client.

Under the FSUIPC Buttons-Facility\FS Controls , i assign the "POV-Views" to the Coolie-Hat of the Joystick.

-I think the "Coolie" has 2 Axis,but FSUIPC doesn´t recognize Axis on Clients -yet- .

maybe in the Future ? :)

This works,but the Buttons don´t want to REPEAT while i press them.

I checked "Control to repeat while held",and the entry in the FSUIPC.ini seems correct:

12=R5000,38,C65671,0

13=R5000,34,C65672,0

(only 2 examples for the POVleft,POVright)

"R" stands for repeat i know...

Please give me a hint.

Kind Regards,

Thomas

Link to comment
Share on other sites

Under the FSUIPC Buttons-Facility\FS Controls , i assign the "POV-Views" to the Coolie-Hat of the Joystick.

"POV-Views"? I don't list such a control. Can you be more explicit please?

-I think the "Coolie" has 2 Axis

No, it will be a "POV" (point-of-view) control, neither a button nor an axis as far as Windows or FS is concerned. It returns an angle between 0 and 360 degrees. An 8-way hat (which is as much as FS or FSUIPC copes with) supplies angles at 45 degree intervals. FSUIPC converts those into buttons 32-39.

but FSUIPC doesn´t recognize Axis on Clients -yet- .

maybe in the Future ? :)

POVs are treated as above both in WideFS, for Clients, and in FSUIPC. No difference.

FSUIPC doesn't handle Axes at all at present, not just not for clients. It is a big job, bypassing all of the FS axis assignment systems and providing all the options which would be needed. It's been on my list for a couple of years.

This works,but the Buttons don´t want to REPEAT while i press them.

I checked "Control to repeat while held",and the entry in the FSUIPC.ini seems correct:

12=R5000,38,C65671,0

13=R5000,34,C65672,0

(only 2 examples for the POVleft,POVright)

The controls you've assigned here are "PAN LEFT" and "PAN RIGHT". In cockpit mode those actually select VIEW_LEFT and VIEW_RIGHT, and repeating those will obviously not make any difference. If you want them to actually pan around you have to be in Virtual cockpit mode.

However, there is a "fix" if that's what you really want to do in 2D cockpit mode -- it isn't defaulted because it appears very odd having the cockpit stationary whilst the scenery slides past in front of you. To apply the fix add

pan_in_cockpit_mode=1

to the [Controls] section of the FS9.CFG file.

I think this is one of the hints in the FS2004 FAQ somewhere in SimFlight (ref. FS2004 Forum).

Regards,

Pete

Link to comment
Share on other sites

Hello Peter,

"POV-Views"? I don't list such a control. Can you be more explicit please?

Yes,of course i meant the PAN-Views! :oops:

However, there is a "fix" if that's what you really want to do in 2D cockpit mode -- it isn't defaulted because it appears very odd having the cockpit stationary whilst the scenery slides past in front of you. To apply the fix add

pan_in_cockpit_mode=1

to the [Controls] section of the FS9.CFG file.

No, i don´t want to PAN in Cockpit-Mode.

In Cockpit-Mode all works good for me.

For example: I assign the Left POV to "PAN Left" ,and

"Button Release" to "Pan Reset COCKPIT" .

It works good for me.

But if i go to the Virtual Cockpit Mode/Spot View and i want to PAN around the Aircraft,the View only make little steps and i have to press the Buttons FAST to pan around the Aircraft.

The Reason: "Control to repeat while held" has no effect.

All other Buttons of this Client-Joystick are affected too.

Independently which Function i select from the FSUIPC-FSControls-Menu.

The same Problem,if i assign a KEY to a Button.

NO repeating...

This Case occurs only with the "Joystick on Client".

If i use the Joystick on the Server(using FSUIPC-Button Programming-Facility/deactivating the FS-internal Button-assigning) all works normally,all the Buttons repeat.

Thanks,

and

Best Regards,

Thomas

Link to comment
Share on other sites

All other Buttons of this Client-Joystick are affected too.

Independently which Function i select from the FSUIPC-FSControls-Menu.

The same Problem,if i assign a KEY to a Button.

NO repeating...

This Case occurs only with the "Joystick on Client".

If i use the Joystick on the Server(using FSUIPC-Button Programming-Facility/deactivating the FS-internal Button-assigning) all works normally,all the Buttons repeat.

Hmmm. How odd. Okay, I'll set something up here and see if I can reproduce this. It is odd, because all the client button pressing does is set a flag bit in FSUIPC offsets when the button is pressed, and clears it when it is released, so it should look "pressed" all the time it really is pressed.

If you program a different action for the Release, does that happen correctly, when released, or immediately, at the same time as the press?

I'm a bit tied up this morning, but I'll get to this later today, maybe tonight.

Regards,

Pete

Link to comment
Share on other sites

Hello Peter,

I programmed a Button to "TRIM DOWN" ,REPEAT;

at Button Release: "AP MASTER"

I press the Button,hold it,and it trims only a little bit;

if i release the Button the AP engages.

All normally,exept the REPEATING.

I created a Log File,this i have enabled:

IPC Read,IPC Write,Extras,Normal Log File,Debug String

(hope it fits)

********* FSUIPC, Version 3.30 by Pete Dowson *********

User Name="Thomas "

User Addr="----"

FSUIPC Key is provided

WideFS Key is provided

[Continuation log requested by user]

Module base=61000000

ClassOptions: UIPCMAIN=FF7F, FS98MAIN=FF7F, FS2KMAIN=FF5E

WeatherOptions(Orig)=4000360D[4000360D]

InitDelay: 0 seconds

WeatherReadInterval=4

LogOptions=0000001D

LogExtras=1

109594 System time = 11:56:13, FS2004 time = 10:26:09 (17:26Z)

109594 *VIS* SM: Min=0,00, MaxRny=0,00, MaxOvc=0,00, MaxCld=0,00, MaxClr=0,00, Upper=60,00, FT: LwrAlt=6000, UppAlt=25000

109594 WeatherOptions set, now 4000360D (timer=0)

112157 AP READOUTS: Flags1=00002103, Flags2=00000000

116016 AP READOUTS: Flags1=00000000, Flags2=00000000

127829 AP READOUTS: Flags1=00002103, Flags2=00000000

135704 AP READOUTS: Flags1=00000000, Flags2=00000000

140579 C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Flight Simulator Files\STD.flt

141079 Clear All Weather requested: external weather discarded

144516 Flight saved #1 = "Previous flight"

145938 System time = 11:56:49, FS2004 time = 10:25:03 (17:25Z)

145938 *** FSUIPC log file being closed

Memory managed: 3 Allocs, 603 Freed

********* FSUIPC Log file closed ****

here my FSUIPC.ini:

(Trim Down/AP Master Buttons are RED marked)

[General]

History=GLW4NN1YISOLBQC0Q5XHD

TCASid=Flight

TCASrange=40

TrafficScanPerFrame=10

AxisCalibration=No

CentredDialogue=No

ClearWeatherDynamics=Yes

OwnWeatherChanges=No

WeatherReadInterval=4

MoveBGLvariables=Yes

MainMenu=&Modules

SubMenu=&FSUIPC ...

WindSmoothing=Yes

AutoTaxiWind=No

WhiteMessages=No

ThrottleSyncAll=No

GraduatedVisibility=No

LowerVisAltitude=6000

UpperVisAltitude=25000

UpperVisibility=6000

GenerateCirrus=Yes

WindShearSharp=No

UpperWindGusts=No

ExtendMetarMaxVis=Yes

PatchSimApAlt=Yes

DisconnTrimForAP=No

AutoClearWeather=Yes

ExtendTopWind=Yes

WindSmoothness=5

SmoothPressure=No

PressureSmoothness=5

SmoothVisibility=No

VisibilitySmoothness=2

MaxSurfaceWind=0

WindLimitLevel=200

WindDiscardLevel=400

WindAjustAltitude=No

WindAjustAltitudeBy=2000

MinimumVisibility=0

MaximumVisibilityFewClouds=0

MaximumVisibility=0

MaximumVisibilityOvercast=0

MaximumVisibilityRainy=0

OneCloudLayer=No

ThinClouds=No

ThinThunderClouds=No

CloudThinness=1000

ThunderCloudThinness=10000

CloudTurbulence=No

CloudIcing=No

WindTurbulence=No

SuppressAllGusts=No

ExternalOptionControl=Yes

AutoTuneADF=No

KeepFS98CloudCover=No

ShowPMcontrols=No

MagicBattery=Yes

RudderSpikeRemoval=No

ElevatorSpikeRemoval=No

AileronSpikeRemoval=No

ReversedElevatorTrim=No

TrapUserInterrupt=Yes

NavFreq50KHz=No

ClockSync=No

SmoothIAS=Yes

SetVisUpperAlt=No

VisUpperAltLimit=6000

MaxIce=3

WindSmoothingDelay=0

WindSmoothAirborneOnly=No

VisSmoothingDelay=0

VisSmoothAirborneOnly=No

SuppressCloudTurbulence=No

SuppressWindTurbulence=No

SpoilerIncrement=512

ShortAircraftNameOk=No

FixWindows=No

FixControlAccel=Yes

SetStdBaroKey=66,11

LogWrites=Yes

LogReads=Yes

LogExtras=Yes

[JoystickCalibration]

FlapsSetControl=0

ReverserControl=66292

MaxThrottleForReverser=0

AileronTrimControl=0

RudderTrimControl=0

CowlFlaps1Control=0

CowlFlaps2Control=0

CowlFlaps3Control=0

CowlFlaps4Control=0

SlopeAileron=0

SlopeElevator=0

SlopeRudder=0

[Keys]

[buttons]

0=P0,0,C1006,1

1=P0,8,C2999,74

2=P5000,1,C65580,0

3=P5000,6,C65567,0

4=P5000,8,C65749,0

5=P5000,10,K187,8

6=P5000,12,K189,8

7=P5000,13,K8,8

8=P5000,11,K32,8

9=P5000,4,K83,10

10=R5000,32,C65734,0

11=R5000,36,C65735,0

12=R5000,38,C65671,0

13=R5000,34,C65672,0

14=P0,36,C66040,16211

15=P0,34,C2999,95

16=P0,1,C2999,93

17=P0,13,C2999,91

18=P0,6,C2999,92

19=P0,19,C2999,94

20=P0,21,C2999,2

21=P0,28,C2999,1

22=P0,20,C2996,71

23=P0,27,C2996,72

24=P0,15,C2999,75

25=P0,7,C2999,77

26=P0,14,C2999,78

27=P0,18,C1006,1

28=P0,4,C1006,2

29=P0,26,C2999,62

30=P0,16,C2999,82

31=P0,24,C1007,2

32=P0,10,C1007,4

33=P0,3,C1007,0

34=P0,30,C2999,83

35=P0,31,C2999,84

36=P1,15,C2999,23

37=P1,29,C2999,22

38=P2,38,C2999,301

39=P2,24,C2999,302

40=P2,31,C2999,303

41=P2,23,C2999,304

42=P2,16,C2999,305

43=P2,2,C2999,306

44=P2,34,C2999,307

45=P2,32,C2999,308

46=P2,36,C2999,309

47=P2,9,C2999,310

48=P2,1,C2999,311

49=P2,15,C2999,314

50=P2,8,C2999,315

51=P2,0,C2999,316

52=P2,22,C65860,0

53=P2,29,C65861,0

54=P2,28,C65759,0

55=P2,21,C65758,0

56=P2,17,C2999,50

57=P2,25,C2999,51

58=P2,3,C2999,52

59=P2,18,C2999,53

60=P2,26,C2999,85

61=P2,19,C2999,86

62=P2,20,C2999,5

63=P2,6,C2999,3

64=P2,13,C2999,4

65=P2,27,C2996,73

66=U5000,36,C66415,0

67=U5000,32,C66415,0

68=R5000,33,C65856,0

69=U5000,33,C66415,0

70=R5000,39,C65854,0

71=U5000,39,C66415,0

72=R5000,37,C65855,0

73=U5000,37,C66415,0

74=R5000,35,C65857,0

75=U5000,35,C66415,0

76=R5000,14,C65607,0

77=U5000,14,C65580,0 THIS is the Trim Down/AP Button

[Programs]

[Monitor]

Display=9

and finally my Wideclient.ini from the Client,where the Joystick is connected:

; PLEASE SEE WideFS documentation for parameter details

; =====================================================

[Config]

Port=8002

Window=16,0,112,780

Visible=Min

ServerIPAddr=10.0.0.140

ButtonScanInterval=20

ClassInstance=0

NetworkTiming=5,1

PollInterval=2000

ResponseTime=18

Timeout=12

TCPcoalesce=No

UseTCPIP=Yes

WaitForNewData=500

; -----------------------------------------------

[user]

Log=Errors+

Run1=C:\Programme\FS Communicator\FSCom.exe

Close1=Yes

AllowShutdown=Yes

; ===============================================

The FSCom.exe was deactivated during testing/logging to Insure it has no Influence.

Best Regards,

Thomas

Link to comment
Share on other sites

All normally,exept the REPEATING.

Okay, I can reproduce that here. Very strange.

I will fix this and re-test here. Are you in desperate need? I am away from Friday for 8 days (visiting my son in Spain), but I am hoping to make a new release (with lots of small improvements) aound the end of the month, or perhaps early October. If you are in dire need I could send an interim fix, but some things may not be quite finished and there will be no new documentation, yet.

Sorry for the inconvenience, either way. Odd that no one has spotted this problem and reported it before!

Regards,

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.